I have succeed to run Scrapy with Tor using this link: http://pkmishra.github.io/blog/2013/03/18/how-to-run-scrapy-with-TOR-and-multiple-browser-agents-part-1-mac/
But i couldn't run Splash with Tor.
In Scrapy-settings.py I directed to polipo for http_proxy(8123 is polipo port):
HTTP_PROXY = 'http://127.0.0.1:8123'
In polipo.config, I directed to tor(9150 is tor port):
socksParentProxy = localhost:9150
diskCacheRoot=""
Which works perfect for scrapy. In splash it doesn't work. But i have to say splash or docker to use polipo for http_proxy like in scrapy-settings.py. Docker should somehow use polipo, and polipo will direct to tor. How can i do that?
I run splash with:
sudo docker run -p 5023:5023 -p 8050:8050 -p 80511 scrapinghub/splash
and in etc/default/docker i tried docker should direct to polipo with this:
export http_proxy='http://127.0.0.1:8123'
Environment="http_proxy=http://127.0.0.1:8123"
But i couldn't succeed. What am i doing wrong? Thanks :)