webmagic icon indicating copy to clipboard operation
webmagic copied to clipboard

代理没有生效?按照文档写的

Open ihuanru opened this issue 8 years ago • 2 comments

    HttpClientDownloader httpClientDownloader = new HttpClientDownloader();
    httpClientDownloader.setProxyProvider(SimpleProxyProvider.from(new Proxy(PROXY_URL,PROXY_PORT,PROXY_USERNAME,PROXY_PASS)));
    Spider.create(innotreePageProcessor).setDownloader(httpClientDownloader).addUrl("https://www.innotree.cn/allProjects")
            .addPipeline(new ConsolePipeline()).run();

ihuanru avatar Jan 29 '18 08:01 ihuanru

应该是代理的问题,检查下代理和用户名密码是否有问题,我这边可以。估计是代理本身也没有办法访问目标站点网页。

jialigit avatar Mar 28 '18 01:03 jialigit

你用的那个版本啊?

okbengii avatar Nov 20 '18 11:11 okbengii