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 . 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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -