T tagslyf Newbie Joined Dec 22, 2016 Messages 4 Reaction score 0 Dec 22, 2016 #1 So I'm coding some script to send URL request(POST) with Proxy but I'm stuck with some problems. Is any one here can give me some tips or code reference for me to help me guide to do the right code for that. Any help will be much appreciated.
So I'm coding some script to send URL request(POST) with Proxy but I'm stuck with some problems. Is any one here can give me some tips or code reference for me to help me guide to do the right code for that. Any help will be much appreciated.
mihai1497 Elite Member Joined Jul 22, 2013 Messages 1,833 Reaction score 292 Dec 22, 2016 #2 You can use the requests module, it's really easy to set proxies using it. Here is an example: Code: import requests proxies = { 'http': 'http://10.10.1.10:3128', 'https': 'http://10.10.1.10:1080', } requests.get('http://example.org', proxies=proxies) Check out their docs for more information: http://docs.python-requests.org/en/master/user/advanced/#proxies
You can use the requests module, it's really easy to set proxies using it. Here is an example: Code: import requests proxies = { 'http': 'http://10.10.1.10:3128', 'https': 'http://10.10.1.10:1080', } requests.get('http://example.org', proxies=proxies) Check out their docs for more information: http://docs.python-requests.org/en/master/user/advanced/#proxies