Proxy Spinner
ProxyRotator is an straightforward, non-reliable, non-secure, but easy-to-use library for avoiding IP blocking by rotating free proxies on demand. It relies in services like ProxyScrape.com to get the proxies and rotate them on demand, and is subject to the availability of that service and the proxies it lists.
Installation
pip install proxy-spinner
Usage
from proxy_spinner import ProxySpinner
import requests
# Initialize the proxy rotator. By default it uses no proxy until you call renew_proxy
proxy_manager = ProxySpinner()
# Renew the proxy to use a new one. Could take a while to find a working one
found_proxy = proxy_manager.renew_proxy()
# Use the proxy in your requests within a context manager
with proxy_manager:
response = requests.get("https://cmp.inmobi.com/geoip").json()
print(f"PROXY ENABLED: You are at {response['city']} ({response['country']}) "
"[Proxy: {found_proxy}]")
# Without the context manager, the proxy is not used
response = requests.get("https://cmp.inmobi.com/geoip").json()
print(f"PROXY DISABLED: You are at {response['city']} ({response['country']})")
Output:
PROXY ENABLED: You are at budapest (hun) [Proxy: 178.48.68.61:18080]
PROXY DISABLED: You are at ********** (esp)
Metadata
Release files for proxy-spinner 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proxy-spinner-0.5.tar.gz | 4.1 kB | Without provenance | Details for proxy-spinner-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proxy_spinner-0.5-py3-none-any.whl | Python 3 | none | any | Details for proxy_spinner-0.5-py3-none-any.whl |
Total release size: 8.7 kB
Release files / proxy-spinner-0.5.tar.gz
| Download URL | proxy-spinner-0.5.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e2fce5568ba6607bdf0ae8048f7b3d8e8bd5ab4b0c81a54aeb791fcce88967a
|
|
BLAKE2b-256 checksum How to use checksums |
b4dc3941ffb66dbe290c3a768320eb89d28925ec30f04f2d3c9ef2340e8e0339
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Release files / proxy_spinner-0.5-py3-none-any.whl
| Download URL | proxy_spinner-0.5-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4b92ae25f5db95d75bd8f6386e91557ced70a5c8c9d7f0a6d675db9b21039e0
|
|
BLAKE2b-256 checksum How to use checksums |
e3a61027c0e0e49ddfdee2dc0c0619602afa3c95f9e0dfaf9d6e27bb687512d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Security for proxy-spinner 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.