mercredi 6 septembre 2017

How to extract text with Jsoup from table

Maybe someone could help me with exracting information from html using jsoup?

Information needed is 23.90 (html frament here - http://ift.tt/2f2U2gd). I can see it in few places in the html doc. I've tried using

Elements taxes = doc.select("td.rightcell.emphasize");

but it is not working.

Also tried extracting info as from table:

   Elements table = doc.select("table[class=selectiontable]");
        Elements rows = table.get(0).select("td[class^=rightcell emphasize]");
        for (Element row : rows) {


            Elements tds = row.select("td");
            System.out.println(tds.get(13));




Aucun commentaire:

Enregistrer un commentaire