Reputation: 1
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
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