Proper Python

Here is a good example how to call pycurl.   It expects the proxy to be in format socks://ip:port, and will default to port 8888 if you just pass it the proxy hostname.     import cStringIO import pycurl import sys,traceback def GetPage(url, proxy=None): if proxy: port = 8888 proxy = proxy.replace(“socks://”, “”) if “:”