requests-anon
Execute HTTPS requests to a server using anonymous proxies. The intended usage is to by-pass server's IP Blocking while scraping data from API or webpages. It's important to note that using anonymous proxies is risky, unsafe and will cause credentials leaks.
Installation
pip install requests-anon
Usage
import requests
from requests_anon import anon_request
# this one will contact the server directly
response = requests.get("https://google.com")
# this one will contact the server using an anonymous proxy
response = anon_request("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.
Contributing
Any contribution is welcome! Please open a PR with your changes.
Metadata
Release files for requests-anon 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| requests_anon-0.1.1.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| requests_anon-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / requests_anon-0.1.1.tar.gz
| Download URL | requests_anon-0.1.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ff7d5bf3b6ad1d654a02d130963fd4ea800c74b9555f975abd51aec32afc028
|
|
BLAKE2b-256 checksum How to use checksums |
59c259c25f6e2df1a34602aecf026fb085b78e7ec91e58ab8db6759c37f2ac21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / requests_anon-0.1.1-py3-none-any.whl
| Download URL | requests_anon-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b173cfd5855472ba5161640dfc7f6db9257fd7a14201366273f707fe56fc6c93
|
|
BLAKE2b-256 checksum How to use checksums |
d71f30a4d62cb243e280dfde8fb8de8dadeb6f6459c00a7f8dc598415b39e575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|