codice:Document doc; try{ //Document doc = Jsoup.parse(new java.net.URL(link).openStream(), "ISO-8859-1", link); org.jsoup.Connection con =Jsoup.connect(link); doc=con.get(); Elements tables = doc.select("table"); //Document doc=Jsoup.connect(link).timeout(10000).get(); //Element tbody = doc.getElementsByTag("table[width=580]"); int i=0; for (Element table: tables){ //Elements row=table.getElementsByClass("crd"); for (Element row : table.getElementsByTag("tr")){ Elements trs =row.select("td"); System.out.println(trs.get(0)); } }
Questa è una parte del codice. Quello che mi stampa il println è quello che viene stampato se da browser faccio tasto Dx -> Ispeziona elemento prima che venga caricata la tabella.

Rispondi quotando
