随笔 - 65  文章 - 0  评论 - 21  阅读 - 32万
  2013年3月20日
摘要: JSoup官方地址:http://jsoup.orgApache HttpComponents官方地址:http://hc.apache.org/index.html1、抓取HTML内容这里我们使用HttpClient库,根据URL请求远端的HTMLpublic static String getHTMLFromURL(String url) { String html = null; HttpClient httpClient = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { ... 阅读全文
posted @ 2013-03-20 11:38 Anthony Li 阅读(1043) 评论(0) 推荐(0) 编辑
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

博客园博客已停止更新,博客地址:dyinigbleed.com

点击右上角即可分享
微信分享提示