Script to fetch a new proxy from the web to send web requests using python's requests library
The script checks free-proxy-list to get a list of free proxy and uses ipleak to check their IP and location. The scripts will skip transparent proxies.
Copy proxy.py on the same folder of your script.
Function to get new proxy: get_proxy(protocol)
- Protocol should be the protocol used by the requesting url (http/https)
import proxy
response=s.get(url, proxies=get_proxy("http"), allow_redirects=True, timeout=30)
You can also mention if you want to skip proxy of a specific country on line no. 9 in proxy.py
country="India"
