50,523
社区成员
发帖
与我相关
我的任务
分享
标签
public class JsoupTest {
/**
* 爬取和解析HTML
* @author hehe
* @throws IOException
* @time 2016.3.1
* */
public static void getHtml(String s) throws IOException{
URL url=new URL(s);
Document doc = Jsoup.parse(url, 5000);
System.out.println(doc);
}
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
getHtml("http://www.ncbi.nlm.nih.gov/protein/18857725");
}
}