摘要:
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 { ... 阅读全文