Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 38820e3

Browse files
committed
飞鱼bug修复 时间间隔有问题
1 parent a7575a6 commit 38820e3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

飞鱼脚本/new_spider.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def main():
253253
crawl_count = 1
254254
while 1:
255255
if crawl_count == 1:
256+
global end_date
256257
print("第1次爬取")
257258
# 测试
258259
phone_data = get_new_phone(start_date, end_date)
@@ -263,6 +264,7 @@ def main():
263264
print("第{}次爬取".format(crawl_count))
264265
times = int(time.time())
265266
phone_data = get_new_phone(end_date, times)
267+
end_date = times
266268
register(phone_data)
267269
crawl_count += 1
268270

飞鱼脚本/phone_number.xls

45.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)