Esempio n. 1
0
 def __init__(self):
     self.date = ''
     self.cookie = 'Pnick=deleted; Pauth=2833833529%7Cwgs492741071%7C276d4fbbdbbb93f5aac5824c613c324a%7C1539834082%7C0%7Ce59efee4ee8b0c0f009c1d1cc7f62657%7C; User=%7C2833833529%7Cwgs492741071%7Cf5f46a7016358200173093642c0e243f622cc7fb; smidV2=20181018114125a85d988e6fe42e6d026f36e926a242d300c75d0fb5a62bb80; _4399tongji_vid=153983408547152; _4399tongji_st=1539834085; Hm_lvt_5c9e5e1fa99c3821422bf61e662d4ea5=1539834085; Hm_lvt_da0bce75c9049bf4056836b34215ec4c=1539834085; _ga=GA1.2.1652444340.1539834086; _gid=GA1.2.1380540418.1539834086; ad_forums=1; Hm_lpvt_5c9e5e1fa99c3821422bf61e662d4ea5=1539834419; Hm_lpvt_da0bce75c9049bf4056836b34215ec4c=1539834419'
     self.db = database()
     try:
         self.ua = UserAgent(use_cache_server=False).random
     except FakeUserAgentError:
         pass
Esempio n. 2
0
 def __init__(self):
     try:
         self.ua = UserAgent(use_cache_server=False).random
     except FakeUserAgentError:
         pass
     # self.limits = 50000
     # self.date = '2000-01-01'
     self.db = database()
Esempio n. 3
0
 def __init__(self):
     try:
         self.ua = UserAgent(use_cache_server=False).random
     except FakeUserAgentError:
         pass
     # self.date = '2000-01-01'
     self.cookie = 'gr_user_id=d5a7e759-8de6-4891-86e0-f72d7485cdfe; __yadk_uid=wia68uVxyxy0tlBxTaTFGjuzXmCX9xeU; _ga=GA1.2.1657514447.1497601281; ue="*****@*****.**"; _vwo_uuid_v2=8554B4120F8A9E0F9D436E4E28660C7C|2b65ea09ee7861daea34a2bda28b500a; bid=eF71gENcjlQ; ll="118159"; douban-fav-remind=1; viewed="26740503_30187219_30187217_22714154"; __utmv=30149280.18556; __utmc=30149280; __utmc=223695111; ps=y; __utma=30149280.1657514447.1497601281.1542074361.1542112373.66; __utmz=30149280.1542112373.66.42.utmcsr=baidu|utmccn=(organic)|utmcmd=organic; __utmt=1; __utmb=30149280.1.10.1542112373; dbcl2="185568216:IvpIxChr+gY"; ck=nRP-; __utma=223695111.1728141219.1497601282.1542074361.1542112381.48; __utmb=223695111.0.10.1542112381; __utmz=223695111.1542112381.48.26.utmcsr=douban.com|utmccn=(referral)|utmcmd=referral|utmcct=/; ap_v=0,6.0; _pk_ref.100001.4cf6=%5B%22%22%2C%22%22%2C1542112381%2C%22https%3A%2F%2Fwww.douban.com%2F%22%5D; _pk_id.100001.4cf6=c7bf3f386bbbaa40.1497601282.56.1542112381.1542074398.; _pk_ses.100001.4cf6=*; push_noty_num=0; push_doumail_num=0'
     self.db = database()
Esempio n. 4
0
	def __init__(self):
		self.ct_time = []
		self.date = ''
		self.db = database()
		try:
			self.ua = UserAgent(use_cache_server=False).random
		except FakeUserAgentError as e:
			print u'浏览器错误!',e
Esempio n. 5
0
 def __init__(self):
     # self.date = '2000-01-01'
     # self.limit = 5000  # 猫眼的评论限制为整个视频的总条数限制
     try:
         self.ua = UserAgent(use_cache_server=False).random
     except FakeUserAgentError:
         pass
     self.db = database()
Esempio n. 6
0
	def __init__(self):
		try:
			self.ua = UserAgent(use_cache_server=False).random
		except FakeUserAgentError:
			pass
		with open('b.txt') as f:
			self.sign_js = f.read().strip()
		self.db = database()
Esempio n. 7
0
 def __init__(self):
     try:
         self.ua = UserAgent(use_cache_server=False).random
     except FakeUserAgentError:
         pass
     # self.date = '2000-01-01'
     # self.limit = 50000
     self.year, self.month, self.day = time.strftime(
         "%Y-%m-%d", time.localtime(time.time())).split('-')
     self.db = database()
Esempio n. 8
0
	def __init__(self):
		try:
			self.ua = UserAgent(use_cache_server=False).random
		except FakeUserAgentError:
			pass
		with open('b.txt') as f:
			self.sign_js = f.read().strip()
		# self.date = '2000-01-01'
		# self.limit = 50000  # 淘票票为电影的总评论限制条数
		self.db = database()
Esempio n. 9
0
 def __init__(self):
     try:
         self.ua = UserAgent(use_cache_server=False).random
     except FakeUserAgentError:
         pass
     self.db = database()
Esempio n. 10
0
 def __init__(self):
     self.db = database()
Esempio n. 11
0
 def __init__(self):
     self.ss = []
     self.db = database()
     self.cookie = 'UM_distinctid=166861498561c3-07ac53b19e1937-7513384e-1fa400-1668614985783f; taihe=b52daf4edbfb158c70724137010c93e0; guestJs=1540973330; CNZZDATA30043604=cnzz_eid%3D1583360308-1539842675-%26ntime%3D1540969179; CNZZDATA30039253=cnzz_eid%3D361766501-1539846334-%26ntime%3D1540969773; Hm_lvt_5adc78329e14807f050ce131992ae69b=1539847791,1540973332; PHPSESSID=13tnq3uvgm1at00tfpu4figdi3; ngacn0comUserInfo=jockcharles%09jockcharles%0939%0939%09%0910%092889%094%090%090%0939_60; ngacn0comUserInfoCheck=31d147f250ef9f1b6dd70a86e7cea444; ngacn0comInfoCheckTime=1540974093; ngaPassportUid=1448405; ngaPassportUrlencodedUname=jockcharles; ngaPassportCid=be6bb78e2011b74e1560bd07d322abfd08143423; lastpath=/read.php?tid=12063608&rand=769; taihe_session=82b05adfa170b9a18ebceb2fa43aba60; lastvisit=1540974109; bbsmisccookies=%7B%22insad_refreshid%22%3A%7B0%3A%22/154043559919813%22%2C1%3A1541578131%7D%2C%22pv_count_for_insad%22%3A%7B0%3A-45%2C1%3A1541005302%7D%2C%22insad_views%22%3A%7B0%3A1%2C1%3A1541005302%7D%7D; Hm_lpvt_5adc78329e14807f050ce131992ae69b=1540974111'