增加了抖音1080p无水印视频地址

This commit is contained in:
Evil0ctal 2022-05-16 20:21:12 -07:00 committed by GitHub
parent a14bf90451
commit 01c28aff23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,9 +189,9 @@ class Scraper:
# 无水印1080p视频链接
try:
r = requests.get("https://aweme.snssdk.com/aweme/v1/play/?video_id={}&radio=1080p&line=0".format(vid), headers=headers, allow_redirects=False)
wm_video_url_1080p = r.headers['Location']
nwm_video_url_1080p = r.headers['Location']
except:
wm_video_url_1080p = "None"
nwm_video_url_1080p = "None"
# 有水印视频链接
wm_video_url = str(js['item_list'][0]['video']['play_addr']['url_list'][0])
# 无水印视频链接 (在回执JSON中将关键字'playwm'替换为'play'即可获得无水印地址)