Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[download fail]: new douyin API #1184

Closed
LazzyFatty opened this issue Jan 1, 2023 · 1 comment · Fixed by #1185
Closed

[download fail]: new douyin API #1184

LazzyFatty opened this issue Jan 1, 2023 · 1 comment · Fixed by #1185
Labels
bug Something isn't working

Comments

@LazzyFatty
Copy link
Contributor

Website name: 抖音

OS:: Windows

Additional context

抖音换新的API了,旧接口现在返回空,找了个新接口,先放这,哪位大佬有时间改的话可以直接去更新代码。

https://www.iesdouyin.com/aweme/v1/web/aweme/detail/?aweme_id= [video_id] &aid=1128&version_name=23.5.0&device_platform=android&os_version=2333

视频的video_id获取逻辑应该是不用改,因为跳转完成之后仍然是https://www.douyin.com /video/ [video_id]

图文的链接跳转完之后变成了https://www.douyin.com /note/ [video_id],原来的正则可能取不到了

视频的话,无水印链接在JSON.aweme_detail.video.bit_rate[0].play_addr.url_list[0]

图片的话,遍历JSON.aweme_detail.images[?],然后取url_list里最后一个,这个是无水印jpeg

JSON.aweme_detail.aweme_type是类别,视频是0,图文(或者纯文字,虽然这个不太可能有人会去解析)是68,转发到日常的视频是109,其他的没试。

@LazzyFatty LazzyFatty added the bug Something isn't working label Jan 1, 2023
LazzyFatty added a commit to LazzyFatty/annie that referenced this issue Jan 2, 2023
iawia002 pushed a commit that referenced this issue Jan 4, 2023
* 更换抖音API(根据#1184)

* 修改链接取值
@LazzyFatty
Copy link
Contributor Author

LazzyFatty commented Jan 29, 2023

2023/1/29
这个接口要带cookie了,不带cookie的话是空的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant