Rambo1
Junior Member
- Jun 27, 2017
- 111
- 31
Hi, guys, i am trying to set up a proxy for my python script.
This is what i have come up with :
proxy = 'http://user:[email protected]:51734'
os.environ['http_proxy'] = proxy
os.environ['HTTP_PROXY'] = proxy
os.environ['https_proxy'] = proxy
os.environ['HTTPS_PROXY'] = proxy
What my question is that i will be running multiple instances of this script passing different proxies as arguments for each instance.
Is this the most feasible solution for using proxies for different instances?
Will this work?
Any help will be much-appreciated thanks.
This is what i have come up with :
proxy = 'http://user:[email protected]:51734'
os.environ['http_proxy'] = proxy
os.environ['HTTP_PROXY'] = proxy
os.environ['https_proxy'] = proxy
os.environ['HTTPS_PROXY'] = proxy
What my question is that i will be running multiple instances of this script passing different proxies as arguments for each instance.
Is this the most feasible solution for using proxies for different instances?
Will this work?
Any help will be much-appreciated thanks.