首页 > 技术文章 > JSoup抓取本地页面

lixxx 2018-07-20 10:03 原文

File in = new File("C:/Users/li/Desktop/2.html");
Document doc01 = Jsoup.parse(in, "UTF-8", "");
Element s = doc01.getElementsByClass("show-solution-box-normal").get(0);
System.out.println(s.html());

推荐阅读