Proxy IP for Scrapy framework

Binit Singh picture Binit Singh · Oct 18, 2013 · Viewed 12.2k times · Source

I am developing a web crawling project using Python and Scrapy framework. It crawls approax 10k web pages from e-commerce shopping websites. whole project is working fine but before moving the code from testing server into production server i want choose a better proxy ip provider service, so that i dont have to worry about my IP Blocking or Denied access of websites to my spiders .

Until now i am using middleware in Scrapy to manually rotate ip from free proxy ip list available of various websites like this

Now i am confused about the options i should chosse

  1. Buy premium proxy list from http://www.ninjasproxy.com/ or http://hidemyass.com/

  2. Use TOR

  3. Use VPN Service like http://www.hotspotshield.com/

  4. Any Option better than above three

Answer

herrherr picture herrherr · Oct 19, 2013

Here are the options I'm currently using (depending on my needs):

  • proxymesh.com - reasonable prices for smaller projects. Never had any issues with the service as it works out of the box with scrapy (I'm not affiliated with them)
  • a self-build script that starts several EC2 micro instances on Amazon. I then SSH into the machines and create a SOCKS proxy connection, those connections are then piped through delegated to create normal http proxies which are usable with scrapy. The http proxies can either be loadbalanced with something like haproxy or you build yourself a custom middleware that rotates proxies

The latter solution is what currently works best for me and pushes around 20-30GB per day of traffic without any problems.