Shubham Roy
Shubham Roy

Reputation: 1

How to extract particular tags from html in android using Jsoup?

I have to extract (div id="content-body-14269002-17342313) tag from this link using jsoup. How will I do that? Can anyone provide a snippet of code of doing so?

Upvotes: 0

Views: 264

Answers (1)

Timo Ohr
Timo Ohr

Reputation: 7947

Use a selector. The documentation even provides a code snippet:

Document doc = Jsoup.parse(...);

Element div = doc.select("#content-body-14269002-17342313").first();

Upvotes: 1

Related Questions