Skip to main content

Manage free and private proxies on local db for Python Projects.

Project description

https://raw.githubusercontent.com/Nekmo/proxy-db/master/images/proxy-db.png

Latest Travis CI build status Latest PyPI version Python versions Code Climate Test coverage Requirements Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proxy-db-0.2.2.tar.gz (19.9 kB view details)

Uploaded Source

File details

Details for the file proxy-db-0.2.2.tar.gz.

File metadata

  • Download URL: proxy-db-0.2.2.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for proxy-db-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3e0cbdbe35de61e450c163b6b26ef3cb7d004f2fd5c94a7b26f257793d6bb793
MD5 0c66236f51baf88f2a45982ed87a1427
BLAKE2b-256 3f1d25706b555508f9e0233ee00fb2ebe3b04355665844fcbcbc561b48b96f47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page