Proxy with urllib2

前端 未结 7 1461
借酒劲吻你
借酒劲吻你 2020-11-22 17:15

I open urls with:

site = urllib2.urlopen(\'http://google.com\')

And what I want to do is connect the same way with a proxy I got somewhere telli

相关标签:
7条回答
  • 2020-11-22 18:05

    In addition set the proxy for the command line session Open a command line where you might want to run your script

    netsh winhttp set proxy YourProxySERVER:yourProxyPORT
    

    run your script in that terminal.

    0 讨论(0)
提交回复
热议问题