Evil0ctal / Douyin_TikTok_Download_API

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

[BUG] 403 Forbidden even with own cookie #459

Open hbarnehl opened 1 month ago

hbarnehl commented 1 month ago

Platform where the error occurred?

TikTok Web

The endpoint where the error occurred?

Such as: API

Submitted input value?

curl -X 'GET' 'http://0.0.0.0/api/download?url=https://www.tiktok.com/@ideas1plus1/video/7387793046919761182?lang=en&prefix=true&with_watermark=false' -H 'accept: application/json'

Have you tried again?

Yes, the error still exists after X time after the error occurred.

Have you checked the readme or interface documentation for this project?

Yes, I retrieved the cookie as explained in the video, but I still get the 403 error.

Evil0ctal commented 1 month ago

Try change this variable, use the value in your browser:

https://github.com/Evil0ctal/Douyin_TikTok_Download_API/blob/2efd3e3eca6ef5096ce9fab902f02a03df857d3a/crawlers/tiktok/web/models.py#L25

hbarnehl commented 2 weeks ago

I changed the device_id, that still did not solve the issue.