Skip to main content

A proxy library for python 3

Project description


Python proxy manager.
Please use diligently and respectfully.
Always respect a website's ROBOTS.txt


This library is compatible with python 3


This library is dependant on:

  • requests
  • beautifulsoup4


pip install py_proxy


  • Automatically fetches up to 80 proxies
  • Cycle between proxies easily
  • Test a proxy and get details about the proxy
  • Validate all fetched proxies concurrently
  • Format proxies for use with requests library


from proxy import Proxy

proxy = Proxy()

# getting the current proxy
cur_proxy = proxy.proxy

# testing the current proxy
res = proxy.test_proxy(cur_proxy)

if res == 1:

# cycling the proxy to a new proxy from the pool

# filtering proxies by a country code
proxy = Proxy("US") #gets US only proxies from the pool

# automatically validating proxies after fetching them
proxy = Proxy(validate_proxies=True)

# format a proxy for use with requests library
ip = "" #example ip, not real
port = "1989" #example port, not real
addr = [ip, port]
proxies = proxy.format_proxy(addr) #returns the requests proxies dictionary

# validating all proxies concurrently

# cycling through valid only proxies


You're free to use this package which is licensed under the MIT-LICENSE


Contribution is always appreciated.
If you are contributing please remember to update the README.
If your contribution is accepted you will be credited for it.

Original Author

Dylan Randall aka HOWZ1T


Berkkarahan - added multi-thread proxy validation

Project details

Download files

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

Files for py-proxy, version 0.2.6
Filename, size File type Python version Upload date Hashes
Filename, size py_proxy-0.2.6-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size py_proxy-0.2.6.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page