def __init__(self): self.c = pycurl.Curl() self.c.setopt(pycurl.TIMEOUT, 5) self.c.setopt(pycurl.FOLLOWLOCATION, True)