Web-Harvest: Set a Proxy Server

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 ... ");










你可能感兴趣的:(java,Web,.net,UP)