def __init__(self, ac, starturl): MultiRequestsWithLogin.__init__(self, ac) self.qqno = ac['qqno'] self.qqpwd = ac['qqpwd'] self.starturl = starturl self.isvalid = True self.lianzhongcheck = False
def __init__(self, ac): MultiRequestsWithLogin.__init__(self, ac) assert isinstance(ac, dict) self.cansearch = 0 self.isvalid = True self.main_page = 'https://passport.liepin.com/h/account/' self.login_page = 'https://passport.liepin.com/h/login.json' self._retry_max_times = 6
def __init__(self, acc): MultiRequestsWithLogin.__init__(self, acc) self.header = {}
def __init__(self, ac): MultiRequestsWithLogin.__init__(self, ac) assert isinstance(ac, dict) self.cansearch = 0 self.isvalid = True
def __init__(self, ac): MultiRequestsWithLogin.__init__(self, ac) self.ac = ac self.cansearch = 0 self.valid_from = 0 self.statistics = StatDict()
def request_url(self, url, **kwargs): self.statistics.inc("req") return MultiRequestsWithLogin.request_url(self, url, **kwargs)
def __init__(self, ac): MultiRequestsWithLogin.__init__(self, ac) assert isinstance(ac, dict) self.hrimger = HrImager() self.ac = ac