I want to extract every href atribute from every job offer and then print it in console.
And it's partialy working, it's printing url from the elements until the element of list with class results__list-container_item ad-container ad-cointainer--show-mobile
. After this element with my println prints empty lines.
website https://www.pracuj.pl/praca/programista;kw/warszawa;wp?rd=30
I used select() from Jsoup:
Document doc = Jsoup.connect(url).get();
Elements offers = doc.select("div.results ul.results__list-container li.results__list-container-item");
for(Element e: offers ){
String offerUrl = e.select("a.offer__click-area").attr("href");
System.out.println(offerUrl);
}