Skip to content

Helper class for getting list of available free proxies. Useful for web scraping.

Notifications You must be signed in to change notification settings

MichaelStott/PyProx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

PyProx

Scrapes https://www.us-proxy.org/ for list of active proxies. Useful for web scraping.

Demo

from pyprox import PyProx
import requests

# Get list of proxies.
pyprox = PyProx()
pyprox.update_proxy_list()

# Choose a random proxy from the list for the request. See the source code
# for more information on specifying proxy properties.
with requests.Session() as s:
    r = s.get("https://www.google.com",
              proxies=pyprox.get_random_proxy({"https":"yes",
                                               "anonymity":"anonymous"})
    print r.text

About

Helper class for getting list of available free proxies. Useful for web scraping.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages