Automatic proxy rotation for anonymous web requests.
The intended usage is to by-pass server's IP blocking by using a pool of free proxies to perform requests and web scraping. It's important to note that using anonymous proxies is risky, unsafe and will cause credentials leaks.
pip install protatoquests
import requests
import protatoquests
# this one will contact the server directly
response = requests.get("https://google.com")
# this one will contact the server using an anonymous proxy
response = protatoquests.get("https://google.com")
- The library gets socks5 free proxies from https://advanced.name/freeproxy. It tries to use the first proxy available, if it fails, it tries the next one; therefore the latency will be higher than using a single proxy or no proxy at all.
- The library API is intended as a drop-in replacement for the
requests
library, although not all the methods are implemented.
Contributions to the GitHub repository are welcome! Please open a PR with your changes.