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 阅读(1037) 评论(0) 推荐(0) 编辑

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