Automatic proxy rotation for anonymous web requests.
Project description
Protatoquests (Proxy Rotation Requests)
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.
Installation
pip install protatoquests
Usage
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")
Considerations
- 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.
Contributing
Contributions to the GitHub repository are welcome! Please open a PR with your changes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
protatoquests-1.0.2.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file protatoquests-1.0.2.tar.gz
.
File metadata
- Download URL: protatoquests-1.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b9628742a30f6d0955b0e45ec3ac99e676324a5943c75b6d93be61c1ce73692 |
|
MD5 | 4fcc5375f9ff77077b0d6f5752d53e90 |
|
BLAKE2b-256 | f04b6d6849c891c4f57cc2bcbf9f4ffa8d065b90c037df06080b40c7e98b4095 |
File details
Details for the file protatoquests-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: protatoquests-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a263ee4401301803cba6e8255e2a810f5ce21ae6d84855a33fb4536ff065a30a |
|
MD5 | 7081b18bc5ad5f63590e51f24b9b9e63 |
|
BLAKE2b-256 | da68202621a3db28a02dca5843335b5af0d952b72dac0ffd78f7586fe0442526 |