`
deyum
  • 浏览: 35869 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Web-Harvest: Set a Proxy Server

    博客分类:
  • Web
阅读更多
InputSource is = new InputSource(new StringReader(script));

info("setting up scraper ... ");
ScraperConfiguration scraperConfig = new ScraperConfiguration(is);
Scraper scraper = new Scraper(scraperConfig, new File("temp/").getAbsolutePath());
scraper.getHttpClientManager().setHttpProxy("www-proxy.dc.bj.foo.net", 8080);
info("setting environment ... ");










分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics