feat(monitor): 抖音 Web 接口客户端 —— 绕开爬虫子进程,直接发 HTTP
Deploy VitePress site to Pages / build (push) Canceled after 0s
Deploy VitePress site to Pages / Deploy (push) Canceled after 0s

移植自 mac-agent-os 的 mediacrawler_adapter:不起子进程、不开页面,用浏览器里那份
登录态直接调抖音 Web 接口。产物键名照抄 store/douyin,所以 ingest 那条链路一个字不用改。

**目前能用的(真环境实测,非推断)**:

    profile/other : 200, 7075 字节  —— 博主主页指标(粉丝/获赞/作品数/昵称)
    aweme/detail  : 200, 45425 字节 —— 单条作品详情(含点赞/评论/收藏/分享)

**目前不能用的:作品列表 `aweme/post`。** 两个互相独立的原因:
  1. 这个接口被抖音单独升级成了真校验:不带 x-tt-argus 回 403「Uifid Not Found」,
     带上 dummy 值回 200 + **空 body**。也就是说「头在不在」骗得过,「真校验」过不了。
     同一套头打 profile/other 和 aweme/detail 都是通的 —— 抖音是挑着接口加保护的,
     挑中的恰好是「批量拉作品列表」这个最敏感的动作。
  2. 改走页面截获也不行:CDP 浏览器打开博主主页会落到「验证码中间页」(当天大量探测的
     代价,过几小时要重测)。

  所以现在的边界是:**已知作品的指标刷新能做,自动发现新作品做不了**。

**排查中控住变量后得到的两条事实**(都写进注释了):
  · `Accept` / `Accept-Language` / `Referer` 才是主页接口能返回真数据的原因 —— 只有
    UA+client hints+Cookie 时是 200 但仅 121 字节的空壳,补上这三个头变 7074 字节。
    (我先前猜的 sec-ch-ua 不是关键。)
  · 因此 UA 与 client hints 必须**成套地取自同一个浏览器**,所以 BrowserIdentity 一次
    从 CDP 取齐 cookie + UA + hints,而不是各自写死。

「200 + 空 body 必须当场报错」也是刻意写死的:放过去它会在下游变成「这个博主没作品」,
把一次失败伪装成一条正常结果 —— 爬虫那条路正是这么栽的,还被翻译成「账号被封」。

测试 +11:cookie 解析、请求头成套性(含 uifid 缺失/回退)、产物键名与 store 对齐、
以及 _get 的三条失败路径(空 body / 403 带网关原话 / 正常返回)。
This commit is contained in:
2026-10-10 17:12:25 +08:00
parent 21ff01b894
commit 2112c1a870
1601 changed files with 367425 additions and 0 deletions
@@ -0,0 +1,57 @@
{
"id": "douyin_browse",
"name": "抖音日常浏览",
"platform": "douyin",
"version": "1.0.0",
"description": "浏览推荐页 + 随机点赞 + 评论,模拟真实用户行为",
"steps": [
{
"op": "goto",
"args": { "url": "https://www.douyin.com/follow" },
"wait_after": 3,
"wait_jitter": 1,
"retry": 2
},
{
"op": "remove_overlays",
"args": {},
"wait_after": 1
},
{
"op": "wait",
"args": { "seconds": 5 },
"wait_after": 0
},
{
"op": "swipe_up",
"args": { "distance": 800, "duration_ms": 500 },
"wait_after": 3,
"wait_jitter": 1
},
{
"op": "swipe_up",
"args": { "distance": 800, "duration_ms": 400 },
"wait_after": 8,
"wait_jitter": 2
},
{
"op": "evaluate",
"args": {
"script": "() => { const btn = document.querySelector('[class*=\"like\"]'); if (btn) btn.click(); }"
},
"wait_after": 2
},
{
"op": "swipe_up",
"args": { "distance": 800, "duration_ms": 450 },
"wait_after": 12,
"wait_jitter": 3
},
{
"op": "swipe_up",
"args": { "distance": 800, "duration_ms": 500 },
"wait_after": 10,
"wait_jitter": 2
}
]
}
@@ -0,0 +1,57 @@
{
"id": "douyin_browse_v2",
"name": "抖音日常浏览(V2-原子操作版)",
"platform": "douyin",
"version": "2.0.0",
"description": "从推荐页出发,浏览视频+随机点赞+收藏,基于 data-e2e 选择器",
"entry_url": "https://www.douyin.com/",
"entry_page": "recommend_feed",
"steps": [
{
"step_id": 1, "op": "goto_home", "args": {},
"wait_after": 3, "wait_jitter": 1, "retry": 2,
"post_check": "is_on_feed"
},
{
"step_id": 2, "op": "wait_watch", "args": {"seconds": 8},
"wait_after": 0, "wait_jitter": 3
},
{
"step_id": 3, "op": "like", "args": {"probability": 0.4},
"wait_after": 1.5, "wait_jitter": 0.5,
"post_check": "digg_state_changed"
},
{
"step_id": 4, "op": "next_video", "args": {},
"wait_after": 2, "wait_jitter": 0.5
},
{
"step_id": 5, "op": "wait_watch", "args": {"seconds": 12},
"wait_after": 0, "wait_jitter": 4
},
{
"step_id": 6, "op": "collect", "args": {"probability": 0.15},
"wait_after": 1, "wait_jitter": 0.5
},
{
"step_id": 7, "op": "next_video", "args": {},
"wait_after": 2, "wait_jitter": 0.5
},
{
"step_id": 8, "op": "wait_watch", "args": {"seconds": 10},
"wait_after": 0, "wait_jitter": 3
},
{
"step_id": 9, "op": "like", "args": {"probability": 0.3},
"wait_after": 1, "wait_jitter": 0.5
},
{
"step_id": 10, "op": "next_video", "args": {},
"wait_after": 2, "wait_jitter": 0.5
},
{
"step_id": 11, "op": "wait_watch", "args": {"seconds": 15},
"wait_after": 0, "wait_jitter": 5
}
]
}
@@ -0,0 +1,83 @@
{
"id": "douyin_browse_v3",
"name": "抖音日常浏览(V3-带验证锚点)",
"platform": "douyin",
"version": "3.0.0",
"description": "从推荐页出发 → 打开视频 → 浏览+点赞+收藏 → 下一条",
"entry_url": "https://www.douyin.com/",
"entry_page": "home",
"steps": [
{
"step_id": 1, "op": "goto_home",
"args": {},
"verify": {"mode": "anchor", "anchor": "grid_page", "timeout": 15},
"on_fail": "retry(2)",
"wait_after": 3
},
{
"step_id": 2, "op": "open_video",
"args": {},
"verify": {"mode": "element", "selector": "video", "timeout": 10},
"on_fail": "try_search",
"wait_after": 3
},
{
"step_id": 3, "op": "wait_watch",
"args": {"seconds": 8},
"verify": {"mode": "none"},
"wait_after": 0
},
{
"step_id": 4, "op": "like",
"args": {},
"verify": {"mode": "element", "selector": "[data-e2e='video-player-digg']", "timeout": 10},
"on_fail": "skip",
"wait_after": 1
},
{
"step_id": 5, "op": "next_video",
"args": {},
"verify": {"mode": "none"},
"wait_after": 2
},
{
"step_id": 6, "op": "wait_watch",
"args": {"seconds": 10},
"wait_after": 0
},
{
"step_id": 7, "op": "collect",
"args": {},
"verify": {"mode": "element", "selector": "[data-e2e='video-player-collect']", "timeout": 10},
"on_fail": "skip",
"wait_after": 1
},
{
"step_id": 8, "op": "next_video",
"args": {},
"wait_after": 2
},
{
"step_id": 9, "op": "wait_watch",
"args": {"seconds": 10},
"wait_after": 0
},
{
"step_id": 10, "op": "like",
"args": {},
"verify": {"mode": "element", "selector": "[data-e2e='video-player-digg']", "timeout": 10},
"on_fail": "skip",
"wait_after": 1
},
{
"step_id": 11, "op": "next_video",
"args": {},
"wait_after": 2
},
{
"step_id": 12, "op": "wait_watch",
"args": {"seconds": 8},
"wait_after": 0
}
]
}
@@ -0,0 +1,38 @@
{
"id": "douyin_collect",
"name": "抖音-信息采集",
"description": "搜索指定博主 → 采集主页信息(昵称/粉丝/关注/获赞)",
"version": "1.0",
"steps": [
{
"step_id": 1,
"op": "goto_home",
"args": {}
},
{
"step_id": 2,
"op": "search",
"args": {
"keyword": "@keyword"
}
},
{
"step_id": 3,
"op": "click_search_result",
"args": {}
},
{
"step_id": 4,
"op": "goto_profile",
"args": {}
},
{
"step_id": 5,
"op": "wait",
"args": {
"seconds": 3
}
}
],
"platform": "douyin"
}
@@ -0,0 +1,25 @@
{
"id": "douyin_comment_4videos",
"name": "抖音定向评论4视频",
"version": "1.0.0",
"platform": "douyin",
"description": "连续评论4个指定视频,每次不同语料",
"steps": [
{"step_id": 1, "op": "goto_url", "args": {"url": "https://www.douyin.com/video/7650464006721877978"}},
{"step_id": 2, "op": "wait_watch", "args": {"seconds": 5}},
{"step_id": 3, "op": "open_comments", "args": {}},
{"step_id": 4, "op": "post_comment", "args": {"text": "@corpus"}},
{"step_id": 5, "op": "goto_url", "args": {"url": "https://www.douyin.com/video/7650462732021792320"}},
{"step_id": 6, "op": "wait_watch", "args": {"seconds": 5}},
{"step_id": 7, "op": "open_comments", "args": {}},
{"step_id": 8, "op": "post_comment", "args": {"text": "@corpus"}},
{"step_id": 9, "op": "goto_url", "args": {"url": "https://www.douyin.com/video/7650461696415277779"}},
{"step_id": 10, "op": "wait_watch", "args": {"seconds": 5}},
{"step_id": 11, "op": "open_comments", "args": {}},
{"step_id": 12, "op": "post_comment", "args": {"text": "@corpus"}},
{"step_id": 13, "op": "goto_url", "args": {"url": "https://www.douyin.com/video/7650460666452916465"}},
{"step_id": 14, "op": "wait_watch", "args": {"seconds": 5}},
{"step_id": 15, "op": "open_comments", "args": {}},
{"step_id": 16, "op": "post_comment", "args": {"text": "@corpus"}}
]
}
@@ -0,0 +1,44 @@
{
"id": "douyin_comment_interact",
"name": "抖音评论互动",
"platform": "douyin",
"version": "1.0.0",
"description": "浏览推荐→打开评论区→发评论→处理验证码→关闭评论",
"entry_url": "https://www.douyin.com/",
"entry_page": "recommend_feed",
"steps": [
{
"step_id": 1, "op": "goto_home", "args": {},
"wait_after": 3, "retry": 2,
"post_check": "is_on_feed"
},
{
"step_id": 2, "op": "wait_watch", "args": {"seconds": 8},
"wait_after": 0, "wait_jitter": 3
},
{
"step_id": 3, "op": "like", "args": {"probability": 0.5},
"wait_after": 1
},
{
"step_id": 4, "op": "open_comments", "args": {},
"wait_after": 2
},
{
"step_id": 5, "op": "post_comment", "args": {"text": "拍得真好"},
"wait_after": 2, "on_verify": "cancel_and_continue"
},
{
"step_id": 6, "op": "close_comments", "args": {},
"wait_after": 1
},
{
"step_id": 7, "op": "next_video", "args": {},
"wait_after": 2
},
{
"step_id": 8, "op": "wait_watch", "args": {"seconds": 10},
"wait_after": 0, "wait_jitter": 3
}
]
}
@@ -0,0 +1,14 @@
{
"id": "douyin_comment_quick",
"name": "快速定向评论",
"version": "1.0.0",
"platform": "douyin",
"description": "打开指定视频 → 评论",
"steps": [
{"step_id": 1, "op": "goto_url", "args": {"url": "https://www.douyin.com/video/7649937010606012518"}},
{"step_id": 2, "op": "wait_watch", "args": {"seconds": 5}},
{"step_id": 3, "op": "open_comments", "args": {}},
{"step_id": 4, "op": "post_comment", "args": {"text": "博主辛苦了"}},
{"step_id": 5, "op": "wait_watch", "args": {"seconds": 3}}
]
}
@@ -0,0 +1,42 @@
{
"id": "douyin_comment_test",
"name": "抖音-定向评论测试",
"version": "1.0.0",
"platform": "douyin",
"description": "打开指定视频链接 → 评论",
"steps": [
{
"step_id": 1,
"op": "goto_url",
"args": {
"url": "https://www.douyin.com/video/7650488090326427892"
}
},
{
"step_id": 2,
"op": "wait_watch",
"args": {
"seconds": 6
}
},
{
"step_id": 3,
"op": "open_comments",
"args": {}
},
{
"step_id": 4,
"op": "post_comment",
"args": {
"text": "@corpus"
}
},
{
"step_id": 5,
"op": "wait_watch",
"args": {
"seconds": 5
}
}
]
}
@@ -0,0 +1,88 @@
{
"id": "douyin_nurture_v1",
"name": "抖音养号(手机模式)",
"version": "1.0.0",
"platform": "douyin",
"description": "搜索→浏览视频→点赞→收藏→切换→重复,使用手机模式操作",
"entry_url": "https://www.douyin.com/",
"device_mode": "mobile_tablet",
"steps": [
{
"step_id": 1,
"op": "goto_home",
"args": {"activate_mobile": true},
"pre": {"page_mode": ["unknown", "grid", "player", "search"]},
"post": {"page_mode": "grid", "description": "首页已加载,手机模式已激活"},
"verify": {"mode": "anchor", "anchor": "grid_page", "timeout": 20},
"on_fail": "retry(2)",
"wait_after": 5
},
{
"step_id": 2,
"op": "search",
"args": {"keyword": "美食推荐"},
"pre": {"page_mode": "grid"},
"post": {"page_mode": "search", "description": "搜索结果已加载"},
"verify": {"mode": "none"},
"wait_after": 4
},
{
"step_id": 3,
"op": "open_video",
"args": {},
"pre": {"page_mode": ["grid", "search"]},
"post": {"page_mode": "player", "description": "视频播放器已打开"},
"verify": {"mode": "element", "selector": "video", "timeout": 10},
"on_fail": "try_search",
"wait_after": 4
},
{
"step_id": 4,
"op": "wait_watch",
"args": {"seconds": 6},
"pre": {"page_mode": "player"},
"post": {"page_mode": "player"},
"verify": {"mode": "none"},
"wait_after": 0
},
{
"step_id": 5,
"op": "like",
"args": {},
"pre": {"page_mode": "player"},
"post": {"page_mode": "player", "liked": true},
"verify": {"mode": "element", "selector": "[data-e2e='video-player-digg']", "timeout": 10},
"on_fail": "log",
"wait_after": 3
},
{
"step_id": 6,
"op": "collect",
"args": {},
"pre": {"page_mode": "player"},
"post": {"page_mode": "player", "collected": true},
"verify": {"mode": "element", "selector": "[data-e2e='video-player-collect']", "timeout": 10},
"on_fail": "log",
"wait_after": 3
},
{
"step_id": 7,
"op": "next_video",
"args": {"method": "auto"},
"pre": {"page_mode": "player"},
"post": {"page_mode": "player", "description": "已切换到下一个视频"},
"verify": {"mode": "none"},
"wait_after": 5
},
{
"step_id": 8,
"op": "like",
"args": {},
"pre": {"page_mode": "player"},
"post": {"page_mode": "player", "liked": true},
"verify": {"mode": "element", "selector": "[data-e2e='video-player-digg']", "timeout": 10},
"on_fail": "log",
"wait_after": 3
}
]
}
@@ -0,0 +1,67 @@
{
"id": "douyin_search_browse",
"name": "抖音-搜索浏览(v2)",
"platform": "douyin",
"version": "1.0.0",
"description": "搜索关键词→浏览结果→点赞→返回推荐页",
"entry_url": "https://www.douyin.com/",
"entry_page": "recommend_feed",
"steps": [
{
"step_id": 1,
"op": "goto_home",
"args": {},
"wait_after": 3,
"retry": 2,
"post_check": "is_on_feed"
},
{
"step_id": 2,
"op": "search",
"args": {
"keyword": "美食推荐"
},
"wait_after": 3,
"retry": 2,
"post_check": "is_on_search"
},
{
"step_id": 3,
"op": "click_search_result",
"args": {
"index": 0
},
"wait_after": 3,
"retry": 2
},
{
"step_id": 4,
"op": "wait_watch",
"args": {
"seconds": 10
},
"wait_after": 0,
"wait_jitter": 3
},
{
"step_id": 5,
"op": "like",
"args": {
"probability": 0.5
},
"wait_after": 1.5
},
{
"step_id": 6,
"op": "go_back",
"args": {},
"wait_after": 2
},
{
"step_id": 7,
"op": "goto_home",
"args": {},
"wait_after": 3
}
]
}
@@ -0,0 +1,27 @@
{
"id": "recorded_douyin_01_5steps",
"name": "抖音-录制蓝图 (5步)",
"version": "1.0.0",
"platform": "douyin",
"description": "由录制自动生成: douyin_01 5步操作",
"steps": [
{
"step_id": 1,
"op": "custom_view_profile",
"args": {},
"wait_after": 2
},
{
"step_id": 2,
"op": "custom_click",
"args": {},
"wait_after": 2
},
{
"step_id": 3,
"op": "custom_action",
"args": {},
"wait_after": 2
}
]
}
@@ -0,0 +1,33 @@
{
"id": "recorded_xhs_01_7steps",
"name": "小红书-录制蓝图 (7步)",
"version": "1.0.0",
"platform": "xiaohongshu",
"description": "由录制自动生成: xhs_01 7步操作",
"steps": [
{
"step_id": 1,
"op": "custom_navigate",
"args": {},
"wait_after": 2
},
{
"step_id": 2,
"op": "custom_click",
"args": {},
"wait_after": 2
},
{
"step_id": 3,
"op": "custom_click_dy_comment_area",
"args": {},
"wait_after": 2
},
{
"step_id": 4,
"op": "custom_enter_video",
"args": {},
"wait_after": 2
}
]
}
@@ -0,0 +1,19 @@
{
"id": "xiaohongshu_nurture_v1",
"name": "小红书日常浏览",
"version": "1.0.0",
"platform": "xiaohongshu",
"description": "小红书养号:浏览推荐页→点击笔记→点赞/收藏→搜索→循环",
"steps": [
{"step_id": 1, "op": "xhs_goto_home", "args": {}, "wait_after": 3},
{"step_id": 2, "op": "xhs_browse", "args": {}, "wait_after": 2},
{"step_id": 3, "op": "xhs_scroll_feed", "args": {}, "wait_after": 2},
{"step_id": 4, "op": "xhs_click_note", "args": {}, "wait_after": 3},
{"step_id": 5, "op": "xhs_like", "args": {"probability": 0.4}, "wait_after": 2},
{"step_id": 6, "op": "xhs_scroll_feed", "args": {}, "wait_after": 2},
{"step_id": 7, "op": "xhs_goto_home", "args": {}, "wait_after": 2},
{"step_id": 8, "op": "xhs_search", "args": {"keyword": "热门推荐"}, "wait_after": 3},
{"step_id": 9, "op": "xhs_click_note", "args": {}, "wait_after": 3},
{"step_id": 10, "op": "xhs_like", "args": {"probability": 0.3}, "wait_after": 2}
]
}
@@ -0,0 +1,20 @@
{
"id": "xiaohongshu_nurture_v2",
"name": "小红书日常浏览(含收藏)",
"version": "1.0.0",
"platform": "xiaohongshu",
"description": "小红书养号 V2:浏览→点击→点赞/收藏→搜索→关注→循环",
"steps": [
{"step_id": 1, "op": "xhs_goto_home", "args": {}, "wait_after": 3},
{"step_id": 2, "op": "xhs_browse", "args": {}, "wait_after": 2},
{"step_id": 3, "op": "xhs_scroll_feed", "args": {}, "wait_after": 2},
{"step_id": 4, "op": "xhs_click_note", "args": {}, "wait_after": 3},
{"step_id": 5, "op": "xhs_like", "args": {"probability": 0.3}, "wait_after": 2},
{"step_id": 6, "op": "xhs_collect", "args": {"probability": 0.2}, "wait_after": 2},
{"step_id": 7, "op": "xhs_goto_home", "args": {}, "wait_after": 2},
{"step_id": 8, "op": "xhs_search", "args": {"keyword": "热门推荐"}, "wait_after": 3},
{"step_id": 9, "op": "xhs_click_note", "args": {}, "wait_after": 3},
{"step_id": 10, "op": "xhs_like", "args": {"probability": 0.3}, "wait_after": 2},
{"step_id": 11, "op": "xhs_scroll_feed", "args": {}, "wait_after": 2}
]
}
@@ -0,0 +1,18 @@
{
"id": "xiaohongshu_read_profile",
"name": "读取主页信息",
"version": "1.0.0",
"platform": "xiaohongshu",
"description": "进入个人主页,逐项读取昵称/小红书号/关注/粉丝/获赞/简介",
"entry_url": "https://www.xiaohongshu.com/explore",
"steps": [
{"step_id": 1, "op": "xhs_goto_home", "args": {}, "wait_after": 3},
{"step_id": 2, "op": "xhs_goto_profile", "args": {}, "wait_after": 3},
{"step_id": 3, "op": "xhs_read_nickname", "args": {}, "wait_after": 1},
{"step_id": 4, "op": "xhs_read_user_id", "args": {}, "wait_after": 1},
{"step_id": 5, "op": "xhs_read_following", "args": {}, "wait_after": 1},
{"step_id": 6, "op": "xhs_read_fans", "args": {}, "wait_after": 1},
{"step_id": 7, "op": "xhs_read_likes", "args": {}, "wait_after": 1},
{"step_id": 8, "op": "xhs_read_bio", "args": {}, "wait_after": 1}
]
}
@@ -0,0 +1,30 @@
{
"id": "daily_comment",
"name": "日常-评论激活",
"description": "日常评论:打开视频 → 观看 → 评论 → 关闭。每天2-3次保持账号活跃,弹验证自动处理",
"version": "1.1",
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_home", "args": {}, "pre": {}, "post": {}},
{"step_id": 2, "op": "scroll_feed", "args": {}, "pre": {}, "post": {}},
{"step_id": 3, "op": "open_video", "args": {}, "pre": {}, "post": {}},
{"step_id": 4, "op": "wait_watch", "args": {"seconds": null}, "pre": {}, "post": {}},
{"step_id": 5, "op": "like", "args": {}, "pre": {}, "post": {}},
{"step_id": 6, "op": "open_comments", "args": {}, "pre": {}, "post": {}},
{"step_id": 7, "op": "post_comment", "args": {"text": "@corpus"}, "pre": {}, "post": {}},
{"step_id": 8, "op": "auto_verify", "args": {}, "pre": {}, "post": {}},
{"step_id": 9, "op": "close_comments", "args": {}, "pre": {}, "post": {}},
{"step_id": 10, "op": "scroll_feed", "args": {}, "pre": {}, "post": {}},
{"step_id": 11, "op": "open_video", "args": {}, "pre": {}, "post": {}},
{"step_id": 12, "op": "wait_watch", "args": {"seconds": null}, "pre": {}, "post": {}},
{"step_id": 13, "op": "open_comments", "args": {}, "pre": {}, "post": {}},
{"step_id": 14, "op": "post_comment", "args": {"text": "@corpus"}, "pre": {}, "post": {}},
{"step_id": 15, "op": "auto_verify", "args": {}, "pre": {}, "post": {}},
{"step_id": 16, "op": "close_comments", "args": {}, "pre": {}, "post": {}}
],
"daily_limit": 3,
"min_interval_minutes": 30,
"args_schema": {
"corpus": {"type": "string", "desc": "语料分类"}
}
}
@@ -0,0 +1,92 @@
{
"id": "douyin_active_v1",
"name": "抖音-高活跃养号",
"version": "2.0",
"platform": "douyin",
"description": "多浏览+点赞+收藏+50%评论率+2次@random搜索+搜索结果浏览",
"steps": [
{"step_id": 1, "op": "goto_home", "args": {}},
{"step_id": 2, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 3, "op": "like", "args": {}},
{"step_id": 4, "op": "next_video", "args": {}},
{"step_id": 5, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 6, "op": "like", "args": {}},
{"step_id": 7, "op": "collect", "args": {}},
{"step_id": 8, "op": "next_video", "args": {}},
{"step_id": 9, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 10, "op": "like", "args": {}},
{"step_id": 11, "op": "next_video", "args": {}},
{"step_id": 12, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 13, "op": "like", "args": {}},
{"step_id": 14, "op": "collect", "args": {}},
{"step_id": 15, "op": "next_video", "args": {}},
{"step_id": 16, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 17, "op": "like", "args": {}},
{"step_id": 18, "op": "search", "args": {"keyword": "@random"}},
{"step_id": 19, "op": "open_video", "args": {}},
{"step_id": 20, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 21, "op": "like", "args": {}},
{"step_id": 22, "op": "collect", "args": {}},
{"step_id": 23, "op": "scroll_feed", "args": {}},
{"step_id": 24, "op": "open_video", "args": {}},
{"step_id": 25, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 26, "op": "like", "args": {}},
{"step_id": 27, "op": "scroll_feed", "args": {}},
{"step_id": 28, "op": "open_video", "args": {}},
{"step_id": 29, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 30, "op": "like", "args": {}},
{"step_id": 31, "op": "collect", "args": {}},
{"step_id": 32, "op": "scroll_feed", "args": {}},
{"step_id": 33, "op": "open_video", "args": {}},
{"step_id": 34, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 35, "op": "like", "args": {}},
{"step_id": 36, "op": "scroll_feed", "args": {}},
{"step_id": 37, "op": "open_video", "args": {}},
{"step_id": 38, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 39, "op": "like", "args": {}},
{"step_id": 40, "op": "collect", "args": {}},
{"step_id": 41, "op": "open_comments","args": {}},
{"step_id": 42, "op": "post_comment", "args": {"text": "@corpus"}},
{"step_id": 43, "op": "close_comments","args": {}},
{"step_id": 44, "op": "search", "args": {"keyword": "@random"}},
{"step_id": 45, "op": "open_video", "args": {}},
{"step_id": 46, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 47, "op": "like", "args": {}},
{"step_id": 48, "op": "scroll_feed", "args": {}},
{"step_id": 49, "op": "open_video", "args": {}},
{"step_id": 50, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 51, "op": "like", "args": {}},
{"step_id": 52, "op": "collect", "args": {}},
{"step_id": 53, "op": "scroll_feed", "args": {}},
{"step_id": 54, "op": "open_video", "args": {}},
{"step_id": 55, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 56, "op": "like", "args": {}},
{"step_id": 57, "op": "scroll_feed", "args": {}},
{"step_id": 58, "op": "open_video", "args": {}},
{"step_id": 59, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 60, "op": "like", "args": {}},
{"step_id": 61, "op": "collect", "args": {}},
{"step_id": 62, "op": "scroll_feed", "args": {}},
{"step_id": 63, "op": "open_video", "args": {}},
{"step_id": 64, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 65, "op": "like", "args": {}},
{"step_id": 66, "op": "scroll_feed", "args": {}},
{"step_id": 67, "op": "open_video", "args": {}},
{"step_id": 68, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 69, "op": "like", "args": {}},
{"step_id": 70, "op": "collect", "args": {}},
{"step_id": 71, "op": "open_comments","args": {}},
{"step_id": 72, "op": "post_comment", "args": {"text": "@corpus"}},
{"step_id": 73, "op": "close_comments","args": {}},
{"step_id": 74, "op": "goto_home", "args": {}},
{"step_id": 75, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 76, "op": "like", "args": {}},
{"step_id": 77, "op": "next_video", "args": {}},
{"step_id": 78, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 79, "op": "like", "args": {}},
{"step_id": 80, "op": "collect", "args": {}}
]
}
@@ -0,0 +1,40 @@
{
"id": "douyin_comment",
"name": "抖音-定向评论",
"description": "给视频链接 → 打开 → 观看 → 评论",
"version": "1.0",
"steps": [
{
"step_id": 1,
"op": "goto_url",
"args": {
"url": "@url"
}
},
{
"step_id": 2,
"op": "wait_watch",
"args": {
"seconds": null
}
},
{
"step_id": 3,
"op": "open_comments",
"args": {}
},
{
"step_id": 4,
"op": "post_comment",
"args": {
"text": "@comment_text"
}
},
{
"step_id": 5,
"op": "close_comments",
"args": {}
}
],
"platform": "douyin"
}
@@ -0,0 +1,54 @@
{
"id": "douyin_daily",
"name": "抖音-日常养号",
"description": "每天3-5轮,浏览10个视频,随机点赞/收藏,1-2条评论",
"version": "2.0",
"steps": [
{"step_id": 1, "op": "goto_home", "args": {}},
{"step_id": 2, "op": "open_video", "args": {}},
{"step_id": 3, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 4, "op": "like", "args": {"probability": 0.6}},
{"step_id": 5, "op": "next_video", "args": {}},
{"step_id": 6, "op": "open_video", "args": {}},
{"step_id": 7, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 8, "op": "like", "args": {"probability": 0.7}},
{"step_id": 9, "op": "collect", "args": {"probability": 0.3}},
{"step_id": 10, "op": "next_video", "args": {}},
{"step_id": 11, "op": "open_video", "args": {}},
{"step_id": 12, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 13, "op": "like", "args": {"probability": 0.6}},
{"step_id": 14, "op": "next_video", "args": {}},
{"step_id": 15, "op": "open_video", "args": {}},
{"step_id": 16, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 17, "op": "like", "args": {"probability": 0.7}},
{"step_id": 18, "op": "collect", "args": {"probability": 0.3}},
{"step_id": 19, "op": "next_video", "args": {}},
{"step_id": 20, "op": "open_video", "args": {}},
{"step_id": 21, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 22, "op": "like", "args": {"probability": 0.6}},
{"step_id": 23, "op": "open_comments", "args": {}},
{"step_id": 24, "op": "post_comment", "args": {"text": "@corpus"}},
{"step_id": 25, "op": "close_comments","args": {}},
{"step_id": 26, "op": "next_video", "args": {}},
{"step_id": 27, "op": "open_video", "args": {}},
{"step_id": 28, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 29, "op": "like", "args": {"probability": 0.7}},
{"step_id": 30, "op": "next_video", "args": {}},
{"step_id": 31, "op": "open_video", "args": {}},
{"step_id": 32, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 33, "op": "like", "args": {"probability": 0.6}},
{"step_id": 34, "op": "collect", "args": {"probability": 0.3}},
{"step_id": 35, "op": "next_video", "args": {}},
{"step_id": 36, "op": "open_video", "args": {}},
{"step_id": 37, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 38, "op": "like", "args": {"probability": 0.7}},
{"step_id": 39, "op": "open_comments", "args": {}},
{"step_id": 40, "op": "post_comment", "args": {"text": "@corpus"}},
{"step_id": 41, "op": "close_comments","args": {}},
{"step_id": 42, "op": "next_video", "args": {}},
{"step_id": 43, "op": "open_video", "args": {}},
{"step_id": 44, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 45, "op": "like", "args": {"probability": 0.6}}
],
"platform": "douyin"
}
@@ -0,0 +1,101 @@
{
"id": "douyin_daily_clean",
"name": "抖音-纯净养号",
"description": "浏览15个视频,随机点赞/收藏/关注,无评论。短信验证时自动跳过(不发短信、不封号)",
"version": "1.0",
"skip_sms": true,
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_home", "args": {}},
{"step_id": 2, "op": "scroll_feed", "args": {}},
{"step_id": 3, "op": "open_video", "args": {}},
{"step_id": 4, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 5, "op": "like", "args": {"probability": 0.5}},
{"step_id": 6, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 7, "op": "scroll_feed", "args": {}},
{"step_id": 8, "op": "open_video", "args": {}},
{"step_id": 9, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 10, "op": "like", "args": {"probability": 0.6}},
{"step_id": 11, "op": "follow", "args": {"probability": 0.1}},
{"step_id": 12, "op": "scroll_feed", "args": {}},
{"step_id": 13, "op": "open_video", "args": {}},
{"step_id": 14, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 15, "op": "like", "args": {"probability": 0.5}},
{"step_id": 16, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 17, "op": "scroll_feed", "args": {}},
{"step_id": 18, "op": "open_video", "args": {}},
{"step_id": 19, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 20, "op": "like", "args": {"probability": 0.6}},
{"step_id": 21, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 22, "op": "scroll_feed", "args": {}},
{"step_id": 23, "op": "open_video", "args": {}},
{"step_id": 24, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 25, "op": "like", "args": {"probability": 0.5}},
{"step_id": 26, "op": "follow", "args": {"probability": 0.1}},
{"step_id": 27, "op": "scroll_feed", "args": {}},
{"step_id": 28, "op": "open_video", "args": {}},
{"step_id": 29, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 30, "op": "like", "args": {"probability": 0.6}},
{"step_id": 31, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 32, "op": "scroll_feed", "args": {}},
{"step_id": 33, "op": "open_video", "args": {}},
{"step_id": 34, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 35, "op": "like", "args": {"probability": 0.5}},
{"step_id": 36, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 37, "op": "scroll_feed", "args": {}},
{"step_id": 38, "op": "open_video", "args": {}},
{"step_id": 39, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 40, "op": "like", "args": {"probability": 0.6}},
{"step_id": 41, "op": "follow", "args": {"probability": 0.1}},
{"step_id": 42, "op": "scroll_feed", "args": {}},
{"step_id": 43, "op": "open_video", "args": {}},
{"step_id": 44, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 45, "op": "like", "args": {"probability": 0.5}},
{"step_id": 46, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 47, "op": "scroll_feed", "args": {}},
{"step_id": 48, "op": "open_video", "args": {}},
{"step_id": 49, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 50, "op": "like", "args": {"probability": 0.6}},
{"step_id": 51, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 52, "op": "scroll_feed", "args": {}},
{"step_id": 53, "op": "open_video", "args": {}},
{"step_id": 54, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 55, "op": "like", "args": {"probability": 0.5}},
{"step_id": 56, "op": "follow", "args": {"probability": 0.1}},
{"step_id": 57, "op": "scroll_feed", "args": {}},
{"step_id": 58, "op": "open_video", "args": {}},
{"step_id": 59, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 60, "op": "like", "args": {"probability": 0.6}},
{"step_id": 61, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 62, "op": "scroll_feed", "args": {}},
{"step_id": 63, "op": "open_video", "args": {}},
{"step_id": 64, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 65, "op": "like", "args": {"probability": 0.5}},
{"step_id": 66, "op": "collect", "args": {"probability": 0.15}},
{"step_id": 67, "op": "scroll_feed", "args": {}},
{"step_id": 68, "op": "open_video", "args": {}},
{"step_id": 69, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 70, "op": "like", "args": {"probability": 0.6}},
{"step_id": 71, "op": "follow", "args": {"probability": 0.1}},
{"step_id": 72, "op": "scroll_feed", "args": {}},
{"step_id": 73, "op": "open_video", "args": {}},
{"step_id": 74, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 75, "op": "like", "args": {"probability": 0.5}},
{"step_id": 76, "op": "collect", "args": {"probability": 0.15}}
]
}
@@ -0,0 +1,155 @@
{
"id": "douyin_read_profile",
"name": "抖音-读取主页信息",
"version": "1.0.0",
"platform": "douyin",
"description": "进入个人主页,逐项读取昵称/抖音号/关注/粉丝/获赞/作品数/简介",
"steps": [
{
"step_id": 1,
"op": "goto_home",
"args": {},
"pre": {
"page_mode": [
"unknown",
"grid",
"player",
"search"
]
},
"post": {
"page_mode": "grid"
},
"verify": {
"mode": "anchor",
"anchor": "grid_page",
"timeout": 20
},
"on_fail": "retry(2)",
"wait_after": 3
},
{
"step_id": 2,
"op": "dy_goto_profile",
"args": {},
"pre": {
"page_mode": "grid"
},
"post": {
"page_mode": "profile"
},
"verify": {
"mode": "element",
"selector": "[data-e2e='user-info']",
"timeout": 15
},
"on_fail": "retry(2)",
"wait_after": 3
},
{
"step_id": 3,
"op": "dy_read_nickname",
"args": {},
"pre": {
"page_mode": "profile"
},
"post": {
"page_mode": "profile"
},
"verify": {
"mode": "none"
},
"wait_after": 1
},
{
"step_id": 4,
"op": "dy_read_douyin_id",
"args": {},
"pre": {
"page_mode": "profile"
},
"post": {
"page_mode": "profile"
},
"verify": {
"mode": "none"
},
"wait_after": 1
},
{
"step_id": 5,
"op": "dy_read_following",
"args": {},
"pre": {
"page_mode": "profile"
},
"post": {
"page_mode": "profile"
},
"verify": {
"mode": "none"
},
"wait_after": 1
},
{
"step_id": 6,
"op": "dy_read_fans",
"args": {},
"pre": {
"page_mode": "profile"
},
"post": {
"page_mode": "profile"
},
"verify": {
"mode": "none"
},
"wait_after": 1
},
{
"step_id": 7,
"op": "dy_read_likes",
"args": {},
"pre": {
"page_mode": "profile"
},
"post": {
"page_mode": "profile"
},
"verify": {
"mode": "none"
},
"wait_after": 1
},
{
"step_id": 8,
"op": "dy_read_posts",
"args": {},
"pre": {
"page_mode": "profile"
},
"post": {
"page_mode": "profile"
},
"verify": {
"mode": "none"
},
"wait_after": 1
},
{
"step_id": 9,
"op": "dy_read_bio",
"args": {},
"pre": {
"page_mode": "profile"
},
"post": {
"page_mode": "profile"
},
"verify": {
"mode": "none"
},
"wait_after": 1
}
]
}
@@ -0,0 +1,36 @@
{
"id": "douyin_reply",
"name": "抖音-作者回复",
"description": "打开自己视频 → 读评论 → 回复评论",
"version": "1.0",
"steps": [
{
"step_id": 1,
"op": "goto_home",
"args": {}
},
{
"step_id": 2,
"op": "goto_profile",
"args": {}
},
{
"step_id": 3,
"op": "read_my_comments",
"args": {}
},
{
"step_id": 4,
"op": "reply_comment",
"args": {
"text": "@reply_text"
}
},
{
"step_id": 5,
"op": "go_back",
"args": {}
}
],
"platform": "douyin"
}
@@ -0,0 +1,97 @@
{
"id": "douyin_search",
"name": "抖音-搜索浏览",
"description": "按关键词搜索、随机点开视频、浏览/点赞/收藏",
"version": "1.0",
"steps": [
{
"step_id": 1,
"op": "search_browse",
"args": {
"keyword": "@keyword"
}
},
{
"step_id": 2,
"op": "wait",
"args": {
"seconds": 2
}
},
{
"step_id": 3,
"op": "next_video",
"args": {}
},
{
"step_id": 4,
"op": "wait_watch",
"args": {
"seconds": null
}
},
{
"step_id": 5,
"op": "like",
"args": {
"probability": 0.5
}
},
{
"step_id": 6,
"op": "collect",
"args": {
"probability": 0.2
}
},
{
"step_id": 7,
"op": "next_video",
"args": {}
},
{
"step_id": 8,
"op": "wait_watch",
"args": {
"seconds": null
}
},
{
"step_id": 9,
"op": "like",
"args": {
"probability": 0.6
}
},
{
"step_id": 10,
"op": "next_video",
"args": {}
},
{
"step_id": 11,
"op": "wait_watch",
"args": {
"seconds": null
}
},
{
"step_id": 12,
"op": "open_comments",
"args": {}
},
{
"step_id": 13,
"op": "post_comment",
"args": {
"text": "@corpus"
}
},
{
"step_id": 14,
"op": "close_comments",
"args": {}
}
],
"platform": "douyin"
}
@@ -0,0 +1,20 @@
{
"id": "dy_step_test",
"name": "抖音-逐步测试",
"description": "11步顺序测试每个原子操作",
"version": "1.0",
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_home", "args": {}},
{"step_id": 2, "op": "open_video", "args": {}},
{"step_id": 3, "op": "wait_watch", "args": {}},
{"step_id": 4, "op": "like", "args": {}},
{"step_id": 5, "op": "collect", "args": {}},
{"step_id": 6, "op": "follow", "args": {}},
{"step_id": 7, "op": "open_comments", "args": {}},
{"step_id": 8, "op": "post_comment", "args": {"text": "好内容"}},
{"step_id": 9, "op": "close_comments", "args": {}},
{"step_id": 10, "op": "next_video", "args": {}},
{"step_id": 11, "op": "go_back", "args": {}}
]
}
@@ -0,0 +1,25 @@
{
"id": "dy_test_all",
"name": "抖音-原子操作全测",
"description": "所有原子操作各执行一次",
"version": "1.0",
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_home", "args": {}},
{"step_id": 2, "op": "open_video", "args": {}},
{"step_id": 3, "op": "wait_watch", "args": {}},
{"step_id": 4, "op": "like", "args": {}},
{"step_id": 5, "op": "collect", "args": {}},
{"step_id": 6, "op": "open_comments", "args": {}},
{"step_id": 7, "op": "post_comment", "args": {"text": "太棒了"}},
{"step_id": 8, "op": "close_comments", "args": {}},
{"step_id": 9, "op": "next_video", "args": {}},
{"step_id": 10, "op": "wait_watch", "args": {}},
{"step_id": 11, "op": "follow", "args": {}},
{"step_id": 12, "op": "search", "args": {"keyword": "美食"}},
{"step_id": 13, "op": "click_search_result","args": {}},
{"step_id": 14, "op": "wait_watch", "args": {}},
{"step_id": 15, "op": "like", "args": {}},
{"step_id": 16, "op": "go_back", "args": {}}
]
}
@@ -0,0 +1,38 @@
# ═══════════════════════════════════════════════
# 录制生成: douyin_01
# 步骤数: 5
# ═══════════════════════════════════════════════
# 步骤 1: 查看主页
elif op == "custom_view_profile":
# 点击坐标 (42, 265)
await conn.page.mouse.click(42, 265)
await asyncio.sleep(2)
result = "clicked"
# 步骤 2: 点击 (166,200) <DIV.KZM6X94T>
elif op == "custom_click":
# 点击坐标 (166, 200)
await conn.page.mouse.click(166, 200)
await asyncio.sleep(2)
result = "clicked"
# 步骤 3: 页面内容变化 (1 events)
elif op == "custom_action":
# TODO: 实现 页面内容变化 (1 events) 的自动化操作
await asyncio.sleep(2)
result = f"TODO({at})"
# 步骤 4: 查看主页
elif op == "custom_view_profile":
# 点击坐标 (405, 23)
await conn.page.mouse.click(405, 23)
await asyncio.sleep(2)
result = "clicked"
# 步骤 5: 点击 (461,26) <SPAN>
elif op == "custom_click":
# 点击坐标 (461, 26)
await conn.page.mouse.click(461, 26)
await asyncio.sleep(2)
result = "clicked"
@@ -0,0 +1,52 @@
# ═══════════════════════════════════════════════
# 录制生成: xhs_01
# 步骤数: 7
# ═══════════════════════════════════════════════
# 步骤 1: 页面导航
elif op == "custom_navigate":
# TODO: 实现 页面导航 的自动化操作
await asyncio.sleep(2)
result = f"TODO({at})"
# 步骤 2: 点击 (338,383) <A.cover mask ld>
elif op == "custom_click":
# 点击坐标 (338, 383)
await conn.page.mouse.click(338, 383)
await asyncio.sleep(2)
result = "clicked"
# 步骤 3: 抖音评论区触发
elif op == "custom_click_dy_comment_area":
# 点击坐标 (485, 683)
await conn.page.mouse.click(485, 683)
await asyncio.sleep(2)
result = "clicked"
# 步骤 4: 进入视频播放
elif op == "custom_enter_video":
# 点击坐标 (553, 690)
await conn.page.mouse.click(553, 690)
await asyncio.sleep(2)
result = "clicked"
# 步骤 5: 点击 (616,687) <svg>
elif op == "custom_click":
# 点击坐标 (616, 687)
await conn.page.mouse.click(616, 687)
await asyncio.sleep(2)
result = "clicked"
# 步骤 6: 点击 (583,646) <IMG.emoji>
elif op == "custom_click":
# 点击坐标 (583, 646)
await conn.page.mouse.click(583, 646)
await asyncio.sleep(2)
result = "clicked"
# 步骤 7: 点击 (583,686) <BUTTON.btn submit>
elif op == "custom_click":
# 点击坐标 (583, 686)
await conn.page.mouse.click(583, 686)
await asyncio.sleep(2)
result = "clicked"
@@ -0,0 +1,24 @@
{
"id": "interact_chain",
"name": "互动-三级接力",
"description": "A评论→B回复A→C回复B,形成互动链",
"version": "1.0",
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_url", "args": {"url": "@url"}, "pre": {}, "post": {}},
{"step_id": 2, "op": "wait_watch", "args": {"seconds": 5}, "pre": {}, "post": {}},
{"step_id": 3, "op": "open_comments","args": {}, "pre": {}, "post": {}},
{"step_id": 4, "op": "post_comment", "args": {"text": "@comment_text"}, "pre": {}, "post": {}},
{"step_id": 5, "op": "wait", "args": {"seconds": 60}, "pre": {}, "post": {}},
{"step_id": 6, "op": "reply_comment","args": {"text": "@reply_text"}, "pre": {}, "post": {}},
{"step_id": 7, "op": "wait", "args": {"seconds": 60}, "pre": {}, "post": {}},
{"step_id": 8, "op": "reply_comment","args": {"text": "@second_reply_text"}, "pre": {}, "post": {}}
],
"args_schema": {
"url": {"type": "string", "required": true, "desc": "视频链接"},
"comment_text": {"type": "string", "desc": "一级评论内容,支持@corpus"},
"reply_text": {"type": "string", "desc": "二级回复内容"},
"second_reply_text": {"type": "string", "desc": "三级回复内容"},
"chain_position": {"type": "string", "enum": ["first", "reply", "second_reply"]}
}
}
@@ -0,0 +1,16 @@
{
"id": "interact_collect",
"name": "互动-收藏",
"description": "打开视频链接 → 等待加载 → 点击收藏按钮",
"version": "1.0",
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_url", "args": {"url": "@url"}, "pre": {}, "post": {}},
{"step_id": 2, "op": "wait_watch", "args": {"seconds": null}, "pre": {}, "post": {}},
{"step_id": 3, "op": "collect", "args": {}, "pre": {}, "post": {}},
{"step_id": 4, "op": "wait_watch", "args": {"seconds": 2}, "pre": {}, "post": {}}
],
"args_schema": {
"url": {"type": "string", "required": true, "desc": "目标视频链接"}
}
}
@@ -0,0 +1,18 @@
{
"id": "interact_comment",
"name": "互动-定向评论",
"description": "打开视频链接 → 等待加载 → 定位评论区 → 输入评论 → 提交",
"version": "1.3",
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_url", "args": {"url": "@url"}, "pre": {}, "post": {}},
{"step_id": 2, "op": "wait_watch", "args": {"seconds": 3}, "pre": {}, "post": {}},
{"step_id": 3, "op": "open_comments","args": {}, "pre": {}, "post": {}},
{"step_id": 4, "op": "post_comment", "args": {"text": "@corpus"},"pre": {}, "post": {}},
{"step_id": 5, "op": "auto_verify", "args": {}, "pre": {}, "post": {}}
],
"args_schema": {
"url": {"type": "string", "required": true, "desc": "目标视频链接"},
"corpus": {"type": "string", "desc": "语料分类"}
}
}
@@ -0,0 +1,20 @@
{
"id": "interact_hot",
"name": "互动-热评互动",
"description": "在热评下回复提升曝光",
"version": "1.0",
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_url", "args": {"url": "@url"}, "pre": {}, "post": {}},
{"step_id": 2, "op": "wait_watch", "args": {"seconds": null}, "pre": {}, "post": {}},
{"step_id": 3, "op": "open_comments", "args": {}, "pre": {}, "post": {}},
{"step_id": 4, "op": "scroll_to_hot_comment", "args": {}, "pre": {}, "post": {}},
{"step_id": 5, "op": "like_comment", "args": {"target": "hot"}, "pre": {}, "post": {}},
{"step_id": 6, "op": "reply_comment", "args": {"text": "@reply_text"}, "pre": {}, "post": {}},
{"step_id": 7, "op": "close_comments", "args": {}, "pre": {}, "post": {}}
],
"args_schema": {
"url": {"type": "string", "required": true, "desc": "目标视频链接"},
"reply_text": {"type": "string", "required": true, "desc": "回复内容"}
}
}
@@ -0,0 +1,18 @@
{
"id": "interact_like",
"name": "互动-点赞互动",
"description": "点赞视频→点赞评论→关注用户",
"version": "1.0",
"platform": "douyin",
"steps": [
{"step_id": 1, "op": "goto_url", "args": {"url": "@url"}, "pre": {}, "post": {}},
{"step_id": 2, "op": "wait_watch", "args": {"seconds": null}, "pre": {}, "post": {}},
{"step_id": 3, "op": "like", "args": {}, "pre": {}, "post": {}},
{"step_id": 4, "op": "open_comments", "args": {}, "pre": {}, "post": {}},
{"step_id": 5, "op": "like_comment", "args": {"target": "hot"}, "pre": {}, "post": {}},
{"step_id": 6, "op": "close_comments", "args": {}, "pre": {}, "post": {}}
],
"args_schema": {
"url": {"type": "string", "required": true, "desc": "目标视频链接"}
}
}
@@ -0,0 +1,101 @@
{
"id": "xhs_active_v1",
"name": "小红书-高活跃养号",
"version": "2.0",
"platform": "xiaohongshu",
"description": "多浏览+点赞+收藏+50%评论率+2次@random搜索+关注+搜索结果浏览",
"steps": [
{"step_id": 1, "op": "xhs_goto_home", "args": {}},
{"step_id": 2, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 3, "op": "xhs_click_note", "args": {}},
{"step_id": 4, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 5, "op": "xhs_like", "args": {}},
{"step_id": 6, "op": "go_back", "args": {}},
{"step_id": 7, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 8, "op": "xhs_click_note", "args": {}},
{"step_id": 9, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 10, "op": "xhs_like", "args": {}},
{"step_id": 11, "op": "xhs_collect", "args": {}},
{"step_id": 12, "op": "go_back", "args": {}},
{"step_id": 13, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 14, "op": "xhs_click_note", "args": {}},
{"step_id": 15, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 16, "op": "xhs_like", "args": {}},
{"step_id": 17, "op": "go_back", "args": {}},
{"step_id": 18, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 19, "op": "xhs_click_note", "args": {}},
{"step_id": 20, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 21, "op": "xhs_like", "args": {}},
{"step_id": 22, "op": "xhs_collect", "args": {}},
{"step_id": 23, "op": "go_back", "args": {}},
{"step_id": 24, "op": "xhs_search", "args": {"keyword": "@random"}},
{"step_id": 25, "op": "xhs_click_note", "args": {}},
{"step_id": 26, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 27, "op": "xhs_like", "args": {}},
{"step_id": 28, "op": "xhs_collect", "args": {}},
{"step_id": 29, "op": "go_back", "args": {}},
{"step_id": 30, "op": "xhs_click_note", "args": {}},
{"step_id": 31, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 32, "op": "xhs_like", "args": {}},
{"step_id": 33, "op": "go_back", "args": {}},
{"step_id": 34, "op": "xhs_click_note", "args": {}},
{"step_id": 35, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 36, "op": "xhs_like", "args": {}},
{"step_id": 37, "op": "xhs_collect", "args": {}},
{"step_id": 38, "op": "go_back", "args": {}},
{"step_id": 39, "op": "xhs_click_note", "args": {}},
{"step_id": 40, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 41, "op": "xhs_like", "args": {}},
{"step_id": 42, "op": "go_back", "args": {}},
{"step_id": 43, "op": "xhs_click_note", "args": {}},
{"step_id": 44, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 45, "op": "xhs_like", "args": {}},
{"step_id": 46, "op": "xhs_collect", "args": {}},
{"step_id": 47, "op": "xhs_post_comment","args": {"text": "@corpus"}},
{"step_id": 48, "op": "go_back", "args": {}},
{"step_id": 49, "op": "xhs_click_note", "args": {}},
{"step_id": 50, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 51, "op": "xhs_like", "args": {}},
{"step_id": 52, "op": "xhs_collect", "args": {}},
{"step_id": 53, "op": "go_back", "args": {}},
{"step_id": 54, "op": "xhs_follow", "args": {}},
{"step_id": 55, "op": "xhs_search", "args": {"keyword": "@random"}},
{"step_id": 56, "op": "xhs_click_note", "args": {}},
{"step_id": 57, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 58, "op": "xhs_like", "args": {}},
{"step_id": 59, "op": "go_back", "args": {}},
{"step_id": 60, "op": "xhs_click_note", "args": {}},
{"step_id": 61, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 62, "op": "xhs_like", "args": {}},
{"step_id": 63, "op": "xhs_collect", "args": {}},
{"step_id": 64, "op": "go_back", "args": {}},
{"step_id": 65, "op": "xhs_click_note", "args": {}},
{"step_id": 66, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 67, "op": "xhs_like", "args": {}},
{"step_id": 68, "op": "go_back", "args": {}},
{"step_id": 69, "op": "xhs_click_note", "args": {}},
{"step_id": 70, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 71, "op": "xhs_like", "args": {}},
{"step_id": 72, "op": "xhs_collect", "args": {}},
{"step_id": 73, "op": "xhs_post_comment","args": {"text": "@corpus"}},
{"step_id": 74, "op": "go_back", "args": {}},
{"step_id": 75, "op": "xhs_click_note", "args": {}},
{"step_id": 76, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 77, "op": "xhs_like", "args": {}},
{"step_id": 78, "op": "go_back", "args": {}},
{"step_id": 79, "op": "xhs_click_note", "args": {}},
{"step_id": 80, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 81, "op": "xhs_like", "args": {}},
{"step_id": 82, "op": "xhs_collect", "args": {}},
{"step_id": 83, "op": "go_back", "args": {}},
{"step_id": 84, "op": "xhs_goto_home", "args": {}},
{"step_id": 85, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 86, "op": "xhs_click_note", "args": {}},
{"step_id": 87, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 88, "op": "xhs_like", "args": {}},
{"step_id": 89, "op": "xhs_collect", "args": {}}
]
}
@@ -0,0 +1,42 @@
{
"id": "xhs_daily",
"name": "小红书-日常养号",
"description": "每天3-5轮,浏览10篇笔记,随机点赞/收藏,1-2条评论,含图片翻页",
"version": "2.1",
"platform": "xiaohongshu",
"steps": [
{"step_id": 1, "op": "xhs_goto_home", "args": {}},
{"step_id": 2, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 3, "op": "xhs_click_note", "args": {}},
{"step_id": 4, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 5, "op": "xhs_click_next_image","args": {}, "probability": 0.4},
{"step_id": 6, "op": "xhs_like", "args": {"probability": 0.6}},
{"step_id": 7, "op": "xhs_comment", "args": {}},
{"step_id": 8, "op": "xhs_post_comment", "args": {"text": "@corpus"}, "probability": 0.3},
{"step_id": 9, "op": "go_back", "args": {}},
{"step_id": 10, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 11, "op": "xhs_click_note", "args": {}},
{"step_id": 12, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 13, "op": "xhs_click_next_image","args": {}, "probability": 0.4},
{"step_id": 14, "op": "xhs_like", "args": {"probability": 0.7}},
{"step_id": 15, "op": "xhs_collect", "args": {"probability": 0.3}},
{"step_id": 16, "op": "go_back", "args": {}},
{"step_id": 17, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 18, "op": "xhs_click_note", "args": {}},
{"step_id": 19, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 20, "op": "xhs_like", "args": {"probability": 0.6}},
{"step_id": 21, "op": "go_back", "args": {}},
{"step_id": 22, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 23, "op": "xhs_click_note", "args": {}},
{"step_id": 24, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 25, "op": "xhs_like", "args": {"probability": 0.7}},
{"step_id": 26, "op": "xhs_collect", "args": {"probability": 0.3}},
{"step_id": 27, "op": "go_back", "args": {}},
{"step_id": 28, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 29, "op": "xhs_click_note", "args": {}},
{"step_id": 30, "op": "wait_watch", "args": {"seconds": null}},
{"step_id": 31, "op": "xhs_like", "args": {"probability": 0.6}},
{"step_id": 32, "op": "xhs_post_comment", "args": {"text": "@corpus"}, "probability": 0.3},
{"step_id": 33, "op": "go_back", "args": {}}
]
}
@@ -0,0 +1,25 @@
{
"id": "xhs_test_all",
"name": "小红书-原子操作全测",
"description": "所有原子操作各执行一次,测试每个是否正常工作",
"version": "1.0",
"platform": "xiaohongshu",
"steps": [
{"step_id": 1, "op": "xhs_goto_home", "args": {}},
{"step_id": 2, "op": "xhs_scroll_feed", "args": {}},
{"step_id": 3, "op": "xhs_click_note", "args": {}},
{"step_id": 4, "op": "wait_watch", "args": {}},
{"step_id": 5, "op": "xhs_like", "args": {}},
{"step_id": 6, "op": "xhs_collect", "args": {}},
{"step_id": 7, "op": "xhs_post_comment", "args": {"text": "测试评论"}},
{"step_id": 8, "op": "go_back", "args": {}},
{"step_id": 9, "op": "xhs_search", "args": {"keyword": "美食"}},
{"step_id": 11, "op": "xhs_click_note", "args": {}},
{"step_id": 12, "op": "wait_watch", "args": {}},
{"step_id": 13, "op": "xhs_like", "args": {}},
{"step_id": 14, "op": "xhs_collect", "args": {}},
{"step_id": 15, "op": "xhs_follow", "args": {}},
{"step_id": 16, "op": "go_back", "args": {}},
{"step_id": 17, "op": "xhs_goto_profile", "args": {}}
]
}
@@ -0,0 +1,68 @@
{
"id": "xiaohongshu_read_profile",
"name": "小红书-读取主页信息",
"version": "1.1.0",
"platform": "xiaohongshu",
"description": "进入个人主页,逐项读取昵称/小红书号/关注/粉丝/获赞/简介",
"entry_url": "https://www.xiaohongshu.com/explore",
"steps": [
{
"step_id": 1,
"op": "xhs_goto_home",
"args": {},
"verify": {"mode": "page_mode", "expected": "grid", "timeout": 15},
"on_fail": "retry(2)",
"wait_after": 3
},
{
"step_id": 2,
"op": "xhs_goto_profile",
"args": {},
"verify": {"mode": "text", "keyword": "小红书号", "timeout": 15},
"on_fail": "retry(2)",
"wait_after": 3
},
{
"step_id": 3,
"op": "xhs_read_nickname",
"args": {},
"verify": {"mode": "none"},
"wait_after": 1
},
{
"step_id": 4,
"op": "xhs_read_user_id",
"args": {},
"verify": {"mode": "none"},
"wait_after": 1
},
{
"step_id": 5,
"op": "xhs_read_following",
"args": {},
"verify": {"mode": "none"},
"wait_after": 1
},
{
"step_id": 6,
"op": "xhs_read_fans",
"args": {},
"verify": {"mode": "none"},
"wait_after": 1
},
{
"step_id": 7,
"op": "xhs_read_likes",
"args": {},
"verify": {"mode": "none"},
"wait_after": 1
},
{
"step_id": 8,
"op": "xhs_read_bio",
"args": {},
"verify": {"mode": "none"},
"wait_after": 1
}
]
}