feat: 添加项目配置文件和更新代理设置以支持新功能
This commit is contained in:
parent
a3a8834df0
commit
16c71d5b5b
3
main.py
3
main.py
@ -199,6 +199,7 @@ def gettoken():
|
||||
'visitor_id': uuid_with_dash,
|
||||
}
|
||||
try:
|
||||
# proxy_str = db.get_proxy(Gproxies)
|
||||
proxy_str = db.get_proxy(Gproxies)
|
||||
url = 'https://graphql.api.dailymotion.com/oauth/token'
|
||||
response = requests.post(url, headers=headers, data=data, proxies={"http": proxy_str, "https": proxy_str})
|
||||
@ -592,7 +593,7 @@ def get_searchInfo(keyword, level):
|
||||
"index": calculated_index,
|
||||
"v_id": node.get("id"),
|
||||
"v_xid": node.get('xid'),
|
||||
"link": "https://www.dailymotion.com/video/" + xid,
|
||||
"link": "https://www.dailymotion.com/video/" + node.get('xid'),
|
||||
"title": node.get("title"),
|
||||
"createtime": node.get("createdAt"),
|
||||
"duration": node.get("duration"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user