0

i want to Extract specific data from table tag how can i do this.

public class Parse1 {
   public static void main(String[] args) throws IOException{
  Document doc = Jsoup.connect(http://allahabadhighcourt.in/casestatus/caseDetailA.jsp?type=BAIL&num=12801&year=2013").get();

for (Element table : doc.select("table")) {
     for (Element row : table.select("tr:gt(2)")) {
        Elements tds = row.select("td:not([rowspan])");
        System.out.println(tds.get(0).text() + "->" + tds.get(1).text());
     }
}
   }  

}
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.