def __init__(self, fileNum): self.user_id = None self.url_damin = 'https://www.zhihu.com/people/' self.is_del = False # self.proxy = None self.userID_list = [] self.fileNum = fileNum self.file = None self.start = None self.end = None self.type = None self.answer_info = None self.mongo = Mongo_3() self.current_proxy = None self.content = None self.headers = { 'Accept': 'textml,application/json,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate, sdch', 'Accept-Language': 'en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2', 'Host': 'www.zhihu.com', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36', 'Referer': 'http://www.zhihu.com/', 'Cookie': None, 'x-udid': None, } self.get_userinfo()
def __init__(self, fileNum): self.fileNum = fileNum self.mongo = Mongo_3() self.userID_list = [] self.id = None #self.file----指代CreatePoint/answers_userInfo_createpoint_? self.file = None self.start = None self.end = None self.driver = None self.get_people_detail()
def __init__(self): self.user_list = [] self.mongo = Mongo_3()