node.js - How to add proxy like Tor when scraping using node.io? -
i using node.io build web scraper during time find way it, i've requested , site has blocked me. don't know how add proxy using tor make request site.
follow article http://pkmishra.github.io/blog/2013/03/18/how-to-run-scrapy-with-tor-and-multiple-browser-agents-part-1-mac/
i install tor , polipo. polipo connect tor , node.io use http proxy polipo provide. seem simple think. , set proxy scraper
var scrap = new scraper({ start: 0, limit: 5, count: null, max: config.max || 0, debug: true, wait: 3, proxy: 'http://127.0.0.1:8123' });
it works fine.
Comments
Post a Comment