From Java Library jsoup

Asked 1 years ago, Updated 1 years ago, 81 views

When you parse using jsoup, as shown in the picture below Do you know how to parse the data-asset-id content above when there is an HTml code part?

java jsoup parsing

2022-09-22 13:50

1 Answers

If you created an object with Jsoup.parse ("html content")

ex ) Document doc = Jsuop.parse("....");

Elements select = doc.select("a[class=asset-link]"); as in select from jquery

After selecting, you can get the value with select.attr ("data-asset-id").


2022-09-22 13:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.