I wanna use urllib2 to get a page with a socks 5 proxy, who can give me a sample code ?

Ju Hui phpbird at gmail.com
Sun Apr 9 10:42:28 EDT 2006


I wanna use urllib2 to get a page with a socks 5 proxy,who can give me
a sample code ?

example,
the proxy server is :123.123.123.123
and the port is :1080
and the username/password is : user/pass
I want to open http://www.google.com

how to write this kind of  script? 
thanks.




More information about the Python-list mailing list