Skip to main content

Python proxy scraper module, only returns valid proxies whose timeout is less than 10 seconds.

Project description

PYPROXIES

Please subscribe to my Github @venaxyt if you want more modules like this.
Pyproxies only returns proxy, it does not print them like on screenshot.

Send a request with http proxy

http_proxy = pyproxies.proxy("http")
proxy_ip = requests.get("https://api.ipify.org", proxies=http_proxy)
print(f" [IP] : {http_proxy}")

http

Send a request with socks4 proxy

socks4_proxy = pyproxies.proxy("socks4")
proxy_ip = requests.get("https://api.ipify.org", proxies=socks4_proxy)
print(f" [IP] : {socks4_proxy}")

socks4

Send a request with socks5 proxy

socks5_proxy = pyproxies.proxy("socks5")
proxy_ip = requests.get("https://api.ipify.org", proxies=socks5_proxy)
print(f" [IP] : {socks5_proxy}")

socks5

Informations:

Pyproxies check every proxy it returns, by sending a request to "api.ipify.org", a website which returns requester ip adress. Pyproxies only returns valid proxies whose timeout is less than 10 seconds, you can edit the timeout in the module code. All proxies comes from proxyscrape.com, you can edit the proxies source in the module code too. Thanks for using my modules, @venaxyt.

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

pyproxies-0.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Supported by

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