Evil0ctal / Douyin_TikTok_Download_API

🚀「Douyin_TikTok_Download_API」是一个开箱即用的高性能异步抖音、快手、TikTok、Bilibili数据爬取工具,支持API调用,在线批量解析及下载。
https://douyin.wtf
Apache License 2.0
8.82k stars 1.38k forks source link

[BUG] Brief and clear description of the problem #334

Closed Mosoonk closed 6 months ago

Mosoonk commented 6 months ago

Platform where the error occurred? scraper.py Such as: TikTok

Such as: video link https://vm.tiktok.com/ZMMrL2r6r/

Add

elif '/photo/' in original_url:
video_id = re.findall('/photo/(\d+)', original_url)[0]

after line 441. in order to download photos, otherwise an error is thrown. raise ValueError(f "获取{url_platform}视频ID失败!")