android - Parsing Each Row Individually -
hi guys trying parse each row on table individually , putting content of in string. page http://reviews.cnet.com/consoles/sony-playstation-3-60gb/4507-10109_7-31355103.html
my goal parse each value of every row not including label example
memory| 60 gb cpu| 8 core
etc.
so need parse value of every spec in table put value of each spec in separate string
so need string name memory has parsed value url , string name cpu has parse value extracted url , on. how can procceed?
document doc = jsoup.connect("http://reviews.cnet.com/consoles/sony-playstation-3-60gb/4507-10109_731355103.html").get();for (element table : doc.select("table.tablehead")) { (element row : table.select("tr")) { elements tds = row.select("td"); if (tds.size() > 6) { system.out.println(tds.get(0).text() + ":" + tds.get(1).text()); string cpu = row.text(); }}}
i suggest take @ jsoup
Comments
Post a Comment