This is my HTML source
Item 1
111&
Try this for easy parsing using jsoup:
// To parse the html page
Document doc = Jsoup.connect("http://www.website.com").get();
Document doc1 = Jsoup.parse("First parse " + " Parsed HTML into a doc.
");
String content = doc.body().text();
// To get specific elements such as links
Element links = doc.select("a[href]");
for(Element e: links){
System.out.println("link: " + e.attr("abs:href"));
}
To learn more, visit Jsoup Docs