android - scrap table data without attribute using jsoup -
i want match list site http://www.livescore.com/. site has 3 tables these tables have no attribute class
or id
. used these codes:
string url = "http://www.livescore.com"; document doc = doc = jsoup.connect(url).useragent("mozilla/5.0 (macintosh; u; intel mac os x; de-de) applewebkit/523.10.3 (khtml, gecko) version/3.0.4 safari/523.10").get(); string output = "no"; elements row = doc.select("table[width=\"468\"] [bgcolor=\"#666666\"] [cellpadding=\"0\"] [border=\"0\"]").select("tr"); (element tr : row) { elements clm = tr.getelementsbytag("td"); output=clm.text(); } t.settext(output);
but table content doesn't appear. how can bring , show table content??? have thought ????
if table content u can grab them list , show listview .@imon
android jsoup
No comments:
Post a Comment