Android : Filering the list of the links

on Monday, September 15, 2014


i'm using library called Jsoup. My goal is to fetch only list items from the list provided in this site :



[https://uzdarbis.lt/f109/it-darbo-pasiulymai/][1]


This is the code i wrote in Android:



Document doc = Jsoup.connect("https://uzdarbis.lt/f109/it-darbo-pasiulymai/").get();
Elements links = doc.select("a[href]");

for(org.jsoup.nodes.Element elem : links){
Log.i(TAG, i +" "+elem.attr("abs:href"));
}


Here is my problem, i get all links of the page. How may i filter it ?


0 comments:

Post a Comment