Code
import requests
proxies = {
'http': 'http://72.10.160.172:9739',
}
url = 'https://httpbin.io/ip'
response = requests.get(url, proxies=proxies)
print(response.json())
References:
[1] https://www.zenrows.com/blog/python-requests-proxy#perform-requests
[2] https://free-proxy-list.net/
[3] https://stackoverflow.com/questions/57579359/use-python-sshtunnel-for-port-forwarding-rest-request
No comments:
Post a Comment