[Java]爬虫利器Jsoup
2017-12-30 本文已影响0人
VincentJianshu
官网
常见操作
Document doc3 = Jsoup.connect(url3).headers(headers).cookies(cookies).get();
Element nextpage = doc3.getElementsByClass("c-pagination").select("a").last();
nextpage.text().equals("下一页")
Document doc3 = Jsoup.connect(url3).headers(headers).cookies(cookies).get();
Element nextpage = doc3.getElementsByClass("c-pagination").select("a").last();
nextpage.text().equals("下一页")