feat(douyin): 重构抖音解析器使用API接口 - #584
Merged
Merged
Conversation
molanp
commented
Aug 21, 2026
Contributor
- 移除原有的HTML解析方式,改用抖音Web API进行数据获取
- 新增aweme.py文件定义API响应的数据结构模型
- 移除不再使用的video.py和slides.py文件
- 更新正则表达式匹配规则,统一处理不同类型的抖音链接
- 添加请求头配置支持OpenAPI访问
- 改进媒体内容处理逻辑,支持图片、视频和音频的正确提取
- 优化错误处理机制和异常情况的反馈信息
- resolve [Bug] 抖音分享页不再包含 videoInfoRes,导致所有抖音链接解析失败 #581
- 移除原有的HTML解析方式,改用抖音Web API进行数据获取 - 新增aweme.py文件定义API响应的数据结构模型 - 移除不再使用的video.py和slides.py文件 - 更新正则表达式匹配规则,统一处理不同类型的抖音链接 - 添加请求头配置支持OpenAPI访问 - 改进媒体内容处理逻辑,支持图片、视频和音频的正确提取 - 优化错误处理机制和异常情况的反馈信息
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Contributor
Author
|
本pr中,未设置抖音标题,因为部分抖音作品的desc可能会非常非常长,不适合设置为标题 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.