答案 0 :(得分:0)
试试这段代码
Document doc = Jsoup.connect("http://www.ncataggies.com//ViewArticle.dbml?DB_OEM_ID=24500&ATCLID=205346437").get();
Elements element = doc.getElementsByClass("article-body");
String text = element.text();
System.out.println(text);
答案 1 :(得分:0)
Document doc = Jsoup.connect("http://www.ncataggies.com/ViewArticle.dbml?DB_OEM_ID=24500&ATCLID=205346437").get();
Element element = doc.select("div.article-body").first();
String text = element.text();
System.out.println(text);