fix(parser): add native Douyin detail fallback - #100
Merged
wujunwei928 merged 2 commits intoAug 21, 2026
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Aug 20, 2026
Open
wujunwei928
approved these changes
Aug 21, 2026
wujunwei928
left a comment
Owner
There was a problem hiding this comment.
已在独立 worktree 完成验证:
go build/go vet/ 新增 6 个单测全过(SM3 标准向量、a_bogus 确定性、query 顺序锁定、mock 请求构造、官方错误透传、无 cookie 拒绝请求)- 原有抖音测试不回归;图集(isNote)路径不受影响
- 真实解析对比:空壳分享页场景下,main 报模糊错误
get video info fail: -,本 PR 无 cookie 时返回明确的配置错误,带 cookie 时正确构造含 a_bogus 的签名请求 - 主路径(分享页含详情)不受影响,后备仅在数据缺失时触发
备注:本机网络无法访问 www.douyin.com,带真实 Cookie 的端到端签名验证依赖作者声明,建议合并后在有 Cookie 的部署环境再实测一次。两个不阻塞的小瑕疵:douyinABogusUserAgentCode 32 字节表仅用 2 个元素;UA 写 Chrome/90 但 query 里 browser_version=130,指纹不一致或增加风控风险。
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.
Summary
PARSE_VIDEO_DOUYIN_COOKIE; no third-party parsing service or hard-coded credential is used.Validation
go test ./...go vet ./...go build ./...docker build -t parse-video:douyin-native-recovery-04f1708 .Security
www.douyin.comdetail endpoint.🤖 Generated with Claude Code