fix: 调整视频处理间隔时间并更新item_keyword调用参数
This commit is contained in:
parent
035aadb6d2
commit
d34be05b6b
4
main.py
4
main.py
@ -118,7 +118,7 @@ def get_searchInfo(keyword, level, headers, proxy_name, r=2):
|
|||||||
"u_pic": iteminfo.get('owner.avatar_60_url')
|
"u_pic": iteminfo.get('owner.avatar_60_url')
|
||||||
}
|
}
|
||||||
video_list.append(v_data)
|
video_list.append(v_data)
|
||||||
time.sleep(1)
|
time.sleep(3)
|
||||||
return video_list
|
return video_list
|
||||||
|
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ def integrate_data_parallel():
|
|||||||
while True:
|
while True:
|
||||||
global proxiesdict
|
global proxiesdict
|
||||||
proxiesdict = db.get_proxy_agent_dict()
|
proxiesdict = db.get_proxy_agent_dict()
|
||||||
tasks, flag = db.item_keyword(1)
|
tasks, flag = db.item_keyword(20)
|
||||||
if not tasks:
|
if not tasks:
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user