Manage free and private proxies on local db for Python Projects.
Project description
proxy-db
Manage free and private proxies on local db for Python Projects. Each proxy has a score according to how it works. Add a positive vote if the proxy works correctly and a negative vote if it does not work. In addition, proxy-db determines the real country of the proxy using geoip.
import requests
from requests.exceptions import Timeout, ConnectionError, ProxyError
from proxy_db.proxies import ProxiesList
proxy = next(ProxiesList())
try:
requests.get('http://site.com/', proxies=proxy)
except (Timeout, ConnectionError, ProxyError):
proxy.negative()
else:
proxy.positive()
Proxy-db will return the best proxies first (more positive votes). You can also filter by country:
from proxy_db.proxies import ProxiesList
spain_proxy = next(ProxiesList('es'))
# ...
Free proxies providers included:
ProxyNova
Install
If you have Pip installed on your system, you can use it to install the latest ProxyDB stable version:
$ sudo pip3 install proxy-db
Python 2.7 & 3.4-3.7 are supported but Python 3.x is recommended. Use pip2 on install for Python2.
Free software: Apache Software License 2.0
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
File details
Details for the file proxy-db-0.2.5.tar.gz
.
File metadata
- Download URL: proxy-db-0.2.5.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
332a39d04609c0aa56634021fa34dc575b475ae2afa6a1a0220e5e5b9bca8558
|
|
MD5 |
48293eb0d13352e1eeb9f34c428ade84
|
|
BLAKE2b-256 |
ba970047f38b69333acad07f86dad5da1fab6745b7b962f122b3cafa9382f18f
|