def setUserAgent(self, UA): #set the user-agent header for all page requests self.netlib = netlib.netlib(UA)
def __init__(self): self.netlib = netlib.netlib("Internet Explorer 6.0") self.stripper = URLStripper.URLStripper() self.ResList = dict() #a results list to keep the final list
def __init__(self): self.netlib = netlib.netlib("Internet Explorer 6.0") self.stripper = URLStripper.URLStripper() self.ResList = dict() # a results list to keep the final list
def setUserAgent(self, UA): self.netlib = netlib.netlib(UA)
def setUserAgent(self,UA): #set the user-agent header for all page requests self.netlib = netlib.netlib(UA)