Can someone please explain me how to make it work? I want to run multiple tors at the same time via privoxy for my scrapy project... Each one should be with a different ip adress.
How to run multiple Tor/Privoxy processes for Scrapy with different ips at the same time?
2.4k Views Asked by EXOR6 At
1
There are 1 best solutions below
Related Questions in PROXY
- CDN Detector Extension / Script
- How to use a proxy to obtain a static IP for my Node.js application?
- Record all desktop internet requests and select certain requests and send it to the server
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Is it viable proxying all my mobile apps requests, to some kind knowing that a request is coming from a secure source
- How to efficiently test some HTTP proxies for accessing a specific domain?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Disable/Enable OSB proxy service via WLST
- Add proxy configuration to tracking_uri in MLFlow
- Python : Using a MTProto Proxy For a Telegram Bot
- How to proxy to another port?
- How to use ProxyAgent with http_proxy and no_proxy environment variables
- Does a 403 error occur if there is no user-agent on the proxy network?
- Enable TLS caching with squid. https_port directive support
- How to peek or ready to check whether HTTP request or not in TCP proxy?
Related Questions in SCRAPY
- pagination, next page with scrapy
- Scraping Text through sections using scrapy
- How to access Script Tag Variables From a Website using Python
- xpath issue in nested div
- How to fixed Crawled (403) forbbiden in scrapy?
- Cannot set LOG_LEVEL when using CrawlerRunner
- Scrapy handle closespider timeout in middleware
- Scrapy CrawlProcess is throwing reactor already installed
- Scrapy playwright non-headless browser always closing
- why can't I retrieve the track of my Spotify playlist even i have given correct full xpath
- Scrapy - how do I load data from the database in ItemLoader before sending it to the pipeline?
- Scrapy Playwright Page Method: Prevent timeout error if selector cannot be located
- Why scrapy shell did not return an output?
- Python Scrapy Function that does always work
- Scrapy / extracting data across multiple HTML tags
Related Questions in TOR
- Intentionally rotating and holding IP addresses in web scraping
- Rotating IP address with selenium, Tor and python on Windows
- Sending POST request with python to private OnionShare server in receive mode
- stem.SocketError: [Errno 61] Connection refused
- Why is python-requests not working over Tor, but Curl does?
- Python: Stem ControlPort for tor connection refused
- Serving API (java) on TOR network
- PERROR torsocks: socks5 libc connect: Connection refused (in socks5_connect() at socks5.c:202)
- Requesting obfs4 bridges using the /moat/fetch interface via bridges.torproject.org in Python does not work
- "Cross-Origin Request Blocked" error when using my web app over TOR
- Nginx as a proxy for nextjs+fastapi app. CORS problem using tor
- Downloading PDF file from URL using requests but getting an error Error: SOCKSHTTPSConnectionPool(host='www.lisbonct.com', port=443):
- Persistent hidden service in golang
- How to use C# to search on Tor Browser through marionette?
- Can't access TOR Proxy from Docker
Related Questions in PRIVOXY
- Unable to connect to Google GKE Private cluster through bastion/cloud-shell/proxy
- How can I disable the display of errors 502 and 503 in Privoxy?
- Privoxy, block some clients(IP addresses) accessing certain web site but other clients are allowed
- SQUID-PRIVOXY-TOR issue
- How to access http request headers from Privoxy?
- Privoxy as intercepting proxy
- An http.Get in Go appears not to be using the HTTP proxy specified in the HTTP_PROXY environment variable?
- Privoxy does not work with traffic from iptables
- Why my python requests are failling with a 503 status using PRIVOXY and TOR?
- Privoxy - Block access to local network
- How do I make a forward-proxy server on k8s and ALB(or NLB)?
- How to run multiple Tor/Privoxy processes for Scrapy with different ips at the same time?
- Docker run hangs when starting provixy prior to containerized app
- How to use Scrapy with Python and Tor over Privoxy in Docker Compose
- Why does Privoxy constantly listen 1087 port after updating macOS?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
First of all sorry for my bad english cause it's not my native language (i'm Russian). I came across many "problems" while trying to set up a multiple instances of tor and privoxy so that each one can work with different ip for my scrapy. I'll show you how it's done.
I'll be working on Kali Linux 2.0 I'll be also working as root.
Step 1. Get tor and privoxy:
Step 2. Make tor duplicates...
Step 3. Make torrc duplicates...
Step 4. Now we gonna edit each torrc file, you can delete everything inside and input these configs:
Step 5. Let's test that everything works well, let's open 4 terminals and launch tor in everyone like this:
Now open a new terminal and let's curl this site "http://ipinfo.io/ip", it's gonna give us our ip. Commands for each tor will be like this:
If you did everything well, each one should return a different ip. Now we have 4 instances of tor running in the same time. But tor uses sock5 proxy and for our scrapy project we need it to be http proxy. So we gonna plug privoxy.
Step 1. Let's copy our privoxy folder 3 times like with tor...
Step 2. Now we gonna edit each config file in each privoxy folder:
First we have to uncheck the "forward-socks5t" and change the port for each config file:
Also change the listen adress:
Step 3. We gonna make a copy of another privoxy folder:
Step 4. Edit the privoxy file in each folder:
Step 5. Finally, make copies for logs for each privoxy:
Done. Let's test, relaunch 4 tors in differents terminals like in the step 5. Now we gonna launch in a different terminal 4 privoxys like this:
To test if it works let's curl the same site:
If it gives you differents ips then you did everything well. If you wanna close all privoxys just type :
Now, when you gonna make spiders in scrapy, you can use a different proxy for each spider, here's an example:
That's it, I hope that this gonna help you out!)) I used to struggle a lot to get all this work together and didn't find any tutorial which explains step by step how to make it work.
Good luck!)
-Mikhail Aleksandrovskiy (offshore47)