Install
openclaw skills install @csak47mu/douyin-text-grabopenclaw skills install @csak47mu/douyin-text-grab用户发送抖音链接(https://v.douyin.com/xxx 或分享口令)+ 提取/抓取/文案/内容/文件 相关意图。
curl -s -L -o /tmp/douyin_page.html \
-w "%{http_code}" \
"https://v.douyin.com/xxx/" \
-H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1" \
--connect-timeout 10
从 HTML 中提取 _ROUTER_DATA JSON,关键字段:
item_list[0].desc — 完整文案(核心,一个字不改)item_list[0].author.nickname — 作者昵称item_list[0].statistics — 点赞/评论/转发/收藏item_list[0].create_time — 发布时间戳使用 scripts/create_docx.py:
python3 scripts/create_docx.py --title "标题" --author "作者" --content "完整文案" --output /tmp/output.docx
message action=send filePath=/tmp/output.docx