示例#1
0
 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
示例#2
0
    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
示例#3
0
 def __init__(self, acc):
     MultiRequestsWithLogin.__init__(self, acc)
     self.header = {}
示例#4
0
 def __init__(self, ac):
     MultiRequestsWithLogin.__init__(self, ac)
     assert isinstance(ac, dict)
     self.cansearch = 0
     self.isvalid = True
示例#5
0
 def __init__(self, ac):
     MultiRequestsWithLogin.__init__(self, ac)
     self.ac = ac
     self.cansearch = 0
     self.valid_from = 0
     self.statistics = StatDict()
示例#6
0
 def request_url(self, url, **kwargs):
     self.statistics.inc("req")
     return MultiRequestsWithLogin.request_url(self, url, **kwargs)
示例#7
0
    def __init__(self, ac):
        MultiRequestsWithLogin.__init__(self, ac)
        assert isinstance(ac, dict)
        self.hrimger = HrImager()

        self.ac = ac