🦊 ProxyFox
A fast and simple proxy fetching library for Python
🚀 Features
- 🔥 Simple Interface - Get proxies in just one line of code
- 🔄 Auto-updating Pool - Keep your proxies fresh
- 🌍 Country Filtering - Get proxies from specific countries
- ⚡ Speed Filtering - Get only fast proxies
- 🔒 Protocol Support - HTTP and HTTPS proxies
- 💪 Flexible API - Simple for beginners, powerful for experts
📦 Installation
pip install proxyfox
🎯 Quick Start
Get a Single Proxy
import proxyfox
# Get any proxy
proxy = proxyfox.get_one()
print(proxy) # Output: '11.22.33.44:8080'
# Get specific proxy type
proxy = proxyfox.get_one(
protocol='https', # 'http' or 'https'
country='US', # country code
max_speed_ms=1000 # speed filter
)
Get Multiple Proxies
# Get 5 proxies
proxies = proxyfox.get(5)
# Get 3 fast proxies from UK
proxies = proxyfox.get(
3,
country='UK',
max_speed_ms=1000
)
Use Auto-updating Pool
# Create a pool that updates every 5 minutes
pool = proxyfox.create_pool(
size=10, # pool size
refresh_interval=300, # update interval in seconds
protocol='https' # optional filters
)
# Get a fresh proxy
proxy = pool.get()
# Get all current proxies
all_proxies = pool.all()
🛠️ Advanced Usage
Using the ProxyFetcher Class
fetcher = proxyfox.ProxyFetcher()
# Get fast proxies
proxies = fetcher.get_fast_proxies(limit=5)
# Get country-specific proxies
us_proxies = fetcher.get_country_proxies('US')
# Get protocol-specific proxies
https_proxies = fetcher.get_https_proxies()
Available Filters
| Filter | Description | Example |
|---|---|---|
protocol |
'http' or 'https' | protocol='https' |
country |
Two-letter country code | country='US' |
max_speed_ms |
Maximum response time | max_speed_ms=1000 |
📝 Example
import proxyfox
# Create an auto-updating pool of fast HTTPS proxies
pool = proxyfox.create_pool(
size=10,
refresh_interval=300,
protocol='https',
max_speed_ms=1000
)
# Get a proxy whenever needed
proxy = pool.get()
print(f"Using proxy: {proxy}")
# Get all current proxies
all_proxies = pool.all()
for proxy in all_proxies:
print(f"Available: {proxy}")
📚 Documentation
For more examples and detailed documentation, visit our GitHub repository.
🤝 Contributing
Contributions are welcome! Feel free to submit a Pull Request.
⚖️ License
This project is licensed under the MIT License - see the LICENSE file for details.
👨💻 Author
Dev shetty (deviprasadshetty400@gmail.com)
Metadata
Release files for proxyfox 0.2.0
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 | |
|---|---|---|---|---|
| proxyfox-0.2.0.tar.gz | 5.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| proxyfox-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / proxyfox-0.2.0.tar.gz
| Download URL | proxyfox-0.2.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fab68c9c6177323519464895c75b5829b0a9af3482f109d853b29856cb01563
|
|
BLAKE2b-256 checksum How to use checksums |
a0e09e62869673faf535c4235037d96cc17e0d7cd40baaf0e36e9219836c2171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / proxyfox-0.2.0-py3-none-any.whl
| Download URL | proxyfox-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b2f8c896a3638306a757456cf54460a62a3bdefea137c73e331e088687531db
|
|
BLAKE2b-256 checksum How to use checksums |
1b2c2d178e809253ec27ad58cff43b945300700d216bd52fa648f43dbd9d0c04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Security for proxyfox 0.2.0
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.