Re: A strange questions, about socket.py
I made a mistake,Sorry -- http://mail.python.org/mailman/listinfo/python-list
A strange questions, about socket.py
Code: import urllib2 , socks , socket socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5,'127.0.0.1',1080,True,None,None) socket.socket = socks.socksocket result = urllib2.urlopen("http://www.youtube.com",timeout=5) If in the operation process of the server disconnected, the script will enter circulat