parsing - Parse "div" which have no name or id , only class atrribute , with htmlClener in android -
i trying parse html webpage have div elements class attribute. need extract information it. multiple div element need traverse through dom. can't identify div element.
switch jsoup, it's awesome!
in opinion should use jsoup. java html parser. feature listed below.
- ability fetch web pages network
- very simple , straightforward api
- css selector tagert html element(s).
for example want div elements class foo
document doc = jsoup.connect("http://website.com/").get(); elements divs = doc.select("div.foo");
Comments
Post a Comment