def __init__(self, phone_attr): self.headers = { 'Accept': '*/*', 'User-Agent': userAgent(), 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'gzip, deflate', 'Connection': 'keep-alive', } self.cookies = dict() self.user_items = list() # 用户信息 self.call_items = list() # 通话信息 self.phone_attr = phone_attr # 手机基本信息
def __init__(self, phone_attr): self.__headers = { 'Accept': '*/*', 'User-Agent': userAgent(), 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'zh-CN', 'Connection': 'keep-alive', } self.cookies = dict() # cookies self.browser = None self.phone_attr = phone_attr # 手机属性 self.user_items = list() # 用户信息 self.call_items = list() # 通话信息 self.refresh_num = 3 # 更新峰值
def __init__(self): self.headers = { 'Referer': '', 'User-Agent': userAgent(), 'Host': 'www.cc10000.cn', 'Connection': 'keep-alive', 'Accept-Language': 'zh-CN,zh;q=0.8', 'Accept-Encoding': 'gzip, deflate, sdch', 'X-Forwarded-For': getIp(), 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', } self.hrefs = list()
def __init__(self, name, password, auth_code): """ :param name: 用户名 :param password: 登陆密码 :param auth_code: 身份验证码 """ self.headers = { 'Referer': None, 'Accept-Language': 'zh-CN', 'Connection': 'keep-alive', 'Host': 'ipcrs.pbccrc.org.cn', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'text/html, application/xhtml+xml, image/jxr, */*', 'User-Agent': userAgent() } self.threshold = 10 self.cookies = None self.host = 'https://ipcrs.pbccrc.org.cn' self.section = dict(user_name=name, password=password, id_code=auth_code)