This package is to get free proxy ips and port number for scraping and for testing on proxy.
Free Proxy List
This library is for testing purpose while scraping.
pip install free-proxy-list
from proxy_list import ProxyList proxy_list = ProxyList()
Get all Proxies?
get_all_proxies() to all the proxies in list form with its ports.
The response would be in form of multiple list of IP and Port.
[('0.0.0.0','8080'),('0.0.0.0','9090'), and so on]
Get Random Proxy?
get_random_proxy() to get a single proxy to use directly in code.
The response would be in form of
dictionary of IP and Port.
How to use in requests?
Official documentation of requests. Requests
from proxy_list import ProxyList proxies = ProxyList() r = requests.get(url, proxies=proxies.get_random_proxy())
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for free_proxy_list-0.0.3-py3-none-any.whl