crawl_config.json
9.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
{
"version": "1.0",
"skill_name": "data-harvester",
"generated_at": "2026-04-09",
"global_settings": {
"request_interval_seconds": 3,
"high_defense_interval_seconds": 5,
"max_retries": 3,
"timeout_seconds": 30,
"user_agent_rotation": true,
"respect_robots_txt": true,
"proxy_recommended": true,
"session_persistence": true,
"screenshot_on_error": true
},
"data_sources": [
{
"id": "douyin_creator_center",
"name": "抖音创作者服务中心",
"category": "short_video_analytics",
"base_url": "https://creator.douyin.com",
"method": "browser_automation",
"entry_url": "https://creator.douyin.com/creator-micro/content/manage",
"login_method": "qr_code_or_sms",
"fields": [
"video_id",
"title",
"publish_time",
"play_count",
"completion_rate",
"avg_play_duration",
"like_count",
"comment_count",
"share_count",
"collect_count",
"ctr",
"follow_conversion_rate",
"source_url",
"crawl_time"
],
"headers": {
"Accept": "application/json, text/plain, */*",
"Accept-Language": "zh-CN,zh;q=0.9",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
"Referer": "https://creator.douyin.com/"
},
"schedule": "0 6,18 * * *",
"anti_detection": {
"note": "抖音风控严格,扫码登录后需保持常驻 Profile。单日请求不超过 200 次。",
"delay_between_pages_ms": 5000,
"suggested_tools": ["Playwright with stealth plugin", "Bright Data proxies"],
"fingerprint_rotation": true
},
"extraction_rules": {
"list_data_source": "window._SSR_HYDRATED_DATA || XHR intercept",
"detail_page_required": true,
"pagination_type": "infinite_scroll"
}
},
{
"id": "xiaohongshu_creator_center",
"name": "小红书创作者中心",
"category": "lifestyle_content_analytics",
"base_url": "https://creator.xiaohongshu.com",
"method": "browser_automation",
"entry_url": "https://creator.xiaohongshu.com/statistics/video",
"login_method": "qr_code",
"fields": [
"note_id",
"title",
"publish_time",
"read_count",
"like_count",
"collect_count",
"comment_count",
"share_count",
"completion_rate",
"follower_growth",
"product_click_count",
"source_url",
"crawl_time"
],
"headers": {
"Accept": "application/json",
"Accept-Language": "zh-CN,zh;q=0.9",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
"Referer": "https://creator.xiaohongshu.com/"
},
"schedule": "0 7,19 * * *",
"anti_detection": {
"note": "小红书 API 需 X-Sign 签名,Cookie 有效期约 30 分钟,长时任务需刷新。",
"delay_between_pages_ms": 4000,
"suggested_tools": ["Playwright", "xhr-intercept"],
"fingerprint_rotation": false
},
"extraction_rules": {
"list_data_source": "API /api/galaxy/statistics/videoNoteList",
"detail_page_required": true,
"pagination_type": "cursor_pagination"
}
},
{
"id": "bilibili_creator_center",
"name": "B站创作中心",
"category": "video_content_analytics",
"base_url": "https://member.bilibili.com",
"api_endpoint": "https://api.bilibili.com/x",
"method": "api_public",
"entry_url": "https://member.bilibili.com/platform/upload-manager/article",
"login_method": "cookie_sessdata",
"fields": [
"bvid",
"title",
"publish_time",
"view_count",
"danmaku_count",
"comment_count",
"coin_count",
"collect_count",
"share_count",
"like_count",
"completion_rate",
"play_source_distribution",
"fan_active_hours",
"source_url",
"crawl_time"
],
"headers": {
"Accept": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"Referer": "https://member.bilibili.com"
},
"schedule": "0 8,20 * * *",
"anti_detection": {
"note": "B站 API 对未登录/非大会员有限制,但总体开放。建议请求间隔 >= 2 秒。",
"delay_between_pages_ms": 2500,
"suggested_tools": ["requests", "Playwright (fallback)"],
"fingerprint_rotation": false
},
"extraction_rules": {
"list_data_source": "REST API (archive/stat)",
"detail_page_required": false,
"pagination_type": "offset_pagination"
}
},
{
"id": "youtube_studio",
"name": "YouTube Studio / YouTube Analytics API",
"category": "global_video_analytics",
"base_url": "https://studio.youtube.com",
"api_endpoint": "https://www.googleapis.com/youtube/v3",
"method": "api_oauth2",
"entry_url": "https://studio.youtube.com/channel/{channel_id}/analytics/tab-overview",
"login_method": "oauth2_service_account",
"fields": [
"video_id",
"title",
"publish_time",
"views",
"watch_time_hours",
"average_view_duration",
"ctr",
"impressions",
"unique_viewers",
"subscribers_gained",
"subscribers_lost",
"likes",
"comments",
"shares",
"source_url",
"crawl_time"
],
"headers": {
"Accept": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
},
"schedule": "0 9 * * *",
"anti_detection": {
"note": "优先使用官方 YouTube Data API v3 和 Analytics API(配额 10,000 units/天)。未覆盖字段用 Studio 页面自动化补充。",
"delay_between_pages_ms": 3000,
"suggested_tools": ["Google API Client", "Playwright (supplemental)"],
"fingerprint_rotation": false
},
"extraction_rules": {
"list_data_source": "YouTube Data API / Analytics API",
"detail_page_required": false,
"pagination_type": "token_pagination"
}
},
{
"id": "kuaishou_creator_platform",
"name": "快手创作者服务平台",
"category": "short_video_analytics",
"base_url": "https://cp.kuaishou.com",
"method": "browser_automation",
"entry_url": "https://cp.kuaishou.com/article/manage/video",
"login_method": "qr_code_or_sms",
"fields": [
"photo_id",
"title",
"publish_time",
"play_count",
"play_completion_rate",
"like_count",
"comment_count",
"share_count",
"follower_growth",
"live_revenue",
"source_url",
"crawl_time"
],
"headers": {
"Accept": "application/json",
"Accept-Language": "zh-CN,zh;q=0.9",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"Referer": "https://cp.kuaishou.com/"
},
"schedule": "0 10,22 * * *",
"anti_detection": {
"note": "快手对 IP 和 UA 敏感,建议配合住宅代理,扫码登录后保持 Session。",
"delay_between_pages_ms": 5000,
"suggested_tools": ["Playwright", "Bright Data / Oxylabs"],
"fingerprint_rotation": true
},
"extraction_rules": {
"list_data_source": "XHR intercept / REST API",
"detail_page_required": true,
"pagination_type": "offset_pagination"
}
},
{
"id": "wechat_channels_assistant",
"name": "微信视频号助手",
"category": "short_video_analytics",
"base_url": "https://channels.weixin.qq.com",
"method": "browser_automation",
"entry_url": "https://channels.weixin.qq.com/platform/post/list",
"login_method": "wechat_qr_code",
"fields": [
"post_id",
"title",
"publish_time",
"play_count",
"like_count",
"comment_count",
"share_count",
"collect_count",
"completion_rate",
"follow_conversion_count",
"product_click_count",
"source_url",
"crawl_time"
],
"headers": {
"Accept": "application/json",
"Accept-Language": "zh-CN,zh;q=0.9",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"Referer": "https://channels.weixin.qq.com/"
},
"schedule": "0 11 * * *",
"anti_detection": {
"note": "微信生态风控极严,必须使用常驻浏览器 Profile,异地登录易触发 24h 冻结。建议每 15 分钟一次心跳轮询。",
"delay_between_pages_ms": 6000,
"suggested_tools": ["Playwright with persistent context", "住宅代理"],
"fingerprint_rotation": true
},
"extraction_rules": {
"list_data_source": "XHR intercept + DOM extraction",
"detail_page_required": true,
"pagination_type": "infinite_scroll"
}
}
],
"output_schema": {
"required_fields": ["source_url", "crawl_time", "platform_name"],
"recommended_fields": [
"content_id",
"title",
"publish_time",
"play_count",
"completion_rate",
"ctr",
"like_count",
"comment_count",
"share_count",
"collect_count",
"follower_growth",
"sentiment_summary"
]
}
}