摘要:
看自己动手写爬虫,没想到一上来就跪了。里面提到用的jar包是apache的http客户端开源项目---HttpClient就去官网下载了一个版本4.3当按书上代码敲时HttpClient httpclient = new HttpClient();敲完这句,就给跪了提示Cannot instantiate the type HttpClient,google 了下,在stackoverflow上面说是应该HttpClient httpclient = new DefaultHttpClient();这样写,不过得先import org.apache.http.impl.client.Defau 阅读全文