基本上,您需要做的是:
//This line will get you the whole page
Document doc = Jsoup.connect("http://www.url.com/section.script").get();
//This other line will make sure you get the specific info you're looking for
Elements elems = doc.select("some element");
//Or if you wanna just print it all out, you can simply
System.out.println(doc);
//You can also print just the text (Without ANY tags, or charset issues)
System.out.println(doc.text())
//The .text(); method works for you the variable Elements as
//well. If you got some info, and just want its text, that's
//the best way to go
另外,我会研究Jsoup 选择器API。