jeudi 5 février 2015

how to stop html scrapping when we see a specific tag


I am scrapping an html page using Jsoup and i want to stop scrapping html when i see this html tag



<li class="hide" filter-type="aspect" data-unique="false" data-`searchable="false" tab-val="SCREEN_SIZE" aspect-key="Screen%20Size">`


i tried something like this



if(e.html().matches("li[class=hide]"))


but doesnt work


thanks in advance.





Aucun commentaire:

Enregistrer un commentaire