KKys / ZhiHuSpider

Java无框架实现爬取知乎用户信息、图片和知乎推荐内容并下载到本地或数据库中
388 stars 209 forks source link

你好,我运行了一下,出现了这个错误,这个怎么解决 #7

Open fangchenhui3 opened 8 years ago

fangchenhui3 commented 8 years ago

正在抓取知乎链接:https://www.zhihu.com/question/28594126 发送GET请求出现异常!java.io.IOException: HTTPS hostname wrong: should be java.io.IOException: HTTPS hostname wrong: should be at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(Unknown Source) at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source) at mothed.Util.SendGet(Util.java:26) at bean.ZhiHuPicBean.(ZhiHuPicBean.java:47) at mothed.Spider.downloadPic(Spider.java:21) at test.ZhiHuMain.main(ZhiHuMain.java:29)

标题:null

即将开始下载图片到D:/知乎爬虫/null

开始下载................

图片下载完毕,请到D:/知乎爬虫/null里去看看吧!!!

我把里面的url改成http://www.zhihu.com 没有发生异常,但是爬取得内容为null,没有爬到内容