[Java]爬虫利器Jsoup

官网

https://jsoup.org/

常见操作

Document doc3 = Jsoup.connect(url3).headers(headers).cookies(cookies).get();
Element nextpage = doc3.getElementsByClass("c-pagination").select("a").last();
nextpage.text().equals("下一页")

你可能感兴趣的:([Java]爬虫利器Jsoup)