fix: 在适当位置重新调用 gettoken 方法以确保令牌有效性
This commit is contained in:
parent
70eab7a847
commit
9768acca11
2
main.py
2
main.py
@ -563,7 +563,6 @@ def get_searchInfo(keyword, level):
|
||||
}
|
||||
"""
|
||||
}
|
||||
gettoken()
|
||||
response = post_with_retry(
|
||||
"https://graphql.api.dailymotion.com/",
|
||||
json_payload=data,
|
||||
@ -704,6 +703,7 @@ def integrate_data():
|
||||
else:
|
||||
for index, (payload, kitem) in enumerate(keywords):
|
||||
try:
|
||||
gettoken()
|
||||
proxiesdict = db.get_proxy_agent_dict()
|
||||
global Gproxies
|
||||
Gproxies = proxiesdict[kitem['rn']]
|
||||
|
Loading…
x
Reference in New Issue
Block a user