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}")
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}")
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}")
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
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 pyproxies-0.2.tar.gz
.
File metadata
- Download URL: pyproxies-0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cf94659a20f29b6c3c6b896754d85723a05e78e7ab69fb16a14a162292edd26 |
|
MD5 | 76f0daa8b9ede44a22bd9964ed5f1e4a |
|
BLAKE2b-256 | a4451d312071d662fef5e4552f915a310c465401f0adfc011f987d5bb9651fa6 |