socialdatax-skills 0.2.23 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -6
- package/cli.mjs +234 -729
- package/lib/media/bilibili-download.mjs +384 -0
- package/lib/media/common.mjs +86 -0
- package/lib/media/wechat-decrypt.mjs +651 -0
- package/package.json +5 -1
- package/skills/media-comments/SKILL.md +3 -2
- package/skills/socialdatax-content-research-assistant/SKILL.md +2 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This public package provides the unified skill installer and direct CLI helper for SocialDataX services.
|
|
4
4
|
|
|
5
|
-
The current public tools support 小红书 / Xiaohongshu / XHS / RedNote, 抖音 / Douyin, 快手 / Kuaishou / Kwai, 微博 / Weibo, 视频号 / WeChat Channels, and 微信公众号 / WeChat Official Account article content research and analysis workflows, plus 敏感词检测 / 违禁词检查 text checks. The public skill layer is intentionally named by capability so supported services can evolve without changing the installation model.
|
|
5
|
+
The current public tools support 小红书 / Xiaohongshu / XHS / RedNote, 抖音 / Douyin, 快手 / Kuaishou / Kwai, 微博 / Weibo, 视频号 / WeChat Channels, and 微信公众号 / WeChat Official Account article content research and analysis workflows, plus Bilibili / 哔哩哔哩 / B站 local video download and 敏感词检测 / 违禁词检查 text checks. The public skill layer is intentionally named by capability so supported services can evolve without changing the installation model.
|
|
6
6
|
|
|
7
7
|
- direct `npx` JSON commands for agents that can run shell commands
|
|
8
8
|
- AgentSkills-compatible installers split by capability for OpenClaw, Hermes Agent, Codex, Claude Code, and general agent skill directories
|
|
@@ -33,6 +33,9 @@ Common search phrases for this skill package:
|
|
|
33
33
|
- `Kuaishou skills`
|
|
34
34
|
- `Kwai skills`
|
|
35
35
|
- `快手 skills`
|
|
36
|
+
- `Bilibili skills`
|
|
37
|
+
- `B站视频下载`
|
|
38
|
+
- `哔哩哔哩视频下载`
|
|
36
39
|
- `Weibo skills`
|
|
37
40
|
- `微博 skills`
|
|
38
41
|
- `WeChat Channels skills`
|
|
@@ -54,6 +57,7 @@ Common search phrases for this skill package:
|
|
|
54
57
|
- XHS hosted MCP endpoint: `https://mcp.socialdatax.com/xhs/mcp`
|
|
55
58
|
- Douyin hosted MCP endpoint: `https://mcp.socialdatax.com/douyin/mcp`
|
|
56
59
|
- Kuaishou hosted MCP endpoint: `https://mcp.socialdatax.com/kuaishou/mcp`
|
|
60
|
+
- Bilibili hosted MCP endpoint: `https://mcp.socialdatax.com/bilibili/mcp`
|
|
57
61
|
- Weibo hosted MCP endpoint: `https://mcp.socialdatax.com/weibo/mcp`
|
|
58
62
|
- WeChat / 微信 hosted MCP endpoint: `https://mcp.socialdatax.com/wechat/mcp`
|
|
59
63
|
- Sensitive Words Check hosted MCP endpoint: `https://mcp.socialdatax.com/sensitive-check/mcp`
|
|
@@ -66,6 +70,8 @@ Common search phrases for this skill package:
|
|
|
66
70
|
- Douyin future platform MCP registry name: `com.socialdatax/douyin-insights`
|
|
67
71
|
- Kuaishou current platform MCP registry name: `com.52choujiang/kuaishou-insights`
|
|
68
72
|
- Kuaishou future platform MCP registry name: `com.socialdatax/kuaishou-insights`
|
|
73
|
+
- Bilibili current platform MCP registry name: `com.52choujiang/bilibili-insights`
|
|
74
|
+
- Bilibili future platform MCP registry name: `com.socialdatax/bilibili-insights`
|
|
69
75
|
- Weibo current platform MCP registry name: `com.52choujiang/weibo-insights`
|
|
70
76
|
- Weibo future platform MCP registry name: `com.socialdatax/weibo-insights`
|
|
71
77
|
- WeChat / 微信 current platform MCP registry name: `com.52choujiang/wechat-channels-insights`
|
|
@@ -73,7 +79,7 @@ Common search phrases for this skill package:
|
|
|
73
79
|
- Sensitive Words Check MCP server name: `sensitive-check`
|
|
74
80
|
- Sensitive Words Check future MCP registry name: `com.socialdatax/sensitive-check`
|
|
75
81
|
- Unified MCP registry name: none; this package installs skills and calls explicit platform services.
|
|
76
|
-
- Current public capability version: `0.2.
|
|
82
|
+
- Current public capability version: `0.2.25`
|
|
77
83
|
|
|
78
84
|
## Direct CLI
|
|
79
85
|
|
|
@@ -87,6 +93,7 @@ npx -y socialdatax-skills@latest xhs search --keyword "露营" --since-days 7 --
|
|
|
87
93
|
npx -y socialdatax-skills@latest xhs hot-search --pretty
|
|
88
94
|
npx -y socialdatax-skills@latest xhs detail --note-id "<note_id>" --pretty
|
|
89
95
|
npx -y socialdatax-skills@latest xhs comments --note-id "<note_id>" --pretty
|
|
96
|
+
npx -y socialdatax-skills@latest xhs comments --note-id "<note_id>" --sort-type time_descending --pretty
|
|
90
97
|
npx -y socialdatax-skills@latest xhs comments --note-id "<note_id>" --all --include-replies --pretty
|
|
91
98
|
npx -y socialdatax-skills@latest xhs sub-comments --note-id "<note_id>" --comment-id "<comment_id>" --pretty
|
|
92
99
|
npx -y socialdatax-skills@latest xhs user-info --user-id "<user_id>" --pretty
|
|
@@ -126,6 +133,7 @@ npx -y socialdatax-skills@latest kuaishou user-posts --profile-url "<profile_url
|
|
|
126
133
|
npx -y socialdatax-skills@latest kuaishou transcript --url "<kuaishou_content_url_or_share_text>" --pretty
|
|
127
134
|
npx -y socialdatax-skills@latest kuaishou transcript --photo-id "<photo_id>" --pretty
|
|
128
135
|
npx -y socialdatax-skills@latest kuaishou transcript --job-id "<job_id>" --pretty
|
|
136
|
+
npx -y socialdatax-skills@latest bilibili download --url "<bilibili_video_url_or_share_text>" --output-dir ./downloads --pretty
|
|
129
137
|
npx -y socialdatax-skills@latest weibo hot-search --pretty
|
|
130
138
|
npx -y socialdatax-skills@latest weibo search --keyword "露营" --pretty
|
|
131
139
|
npx -y socialdatax-skills@latest weibo detail --post-id "<post_id>" --pretty
|
|
@@ -164,6 +172,8 @@ npx -y socialdatax-skills@latest sensitive-check text --text "<content>" --platf
|
|
|
164
172
|
|
|
165
173
|
Most direct CLI commands print a JSON envelope with `platform`, `tool`, `arguments`, and `data`. `sensitive-check` prints `platform`, `tool`, and `data` only; it does not echo the original text in CLI output. `wechat decrypt-media` is a local save command: pass the `video.video_url` returned by WeChat detail and an `--output` file path. It saves the media locally, decrypts when needed, and does not require `SOCIALDATAX_API_KEY`.
|
|
166
174
|
|
|
175
|
+
`bilibili download` calls SocialDataX once to fetch short-lived download links, then downloads video and audio tracks on the local machine and merges them with local `ffmpeg`. Set `SOCIALDATAX_API_KEY`, install `ffmpeg`, and pass either `--output <file>` or `--output-dir <directory>`. The download-links request consumes 10 credits; the local track download and merge do not consume additional SocialDataX credits. Use `--ffmpeg-path <path>` when `ffmpeg` is not on `PATH`, and `--keep-tracks` to retain the separate track files after merge.
|
|
176
|
+
|
|
167
177
|
For XHS outputs with a returned `note_url` field, when `note_url` is non-null, preserve it exactly as the full URL, including `xsec_token` query parameters, such as in final answers or display. Do not modify, truncate, redact, normalize, rebuild, or replace it with a link assembled from `note_id`. If `note_url` is null, do not synthesize a public link from `note_id`.
|
|
168
178
|
|
|
169
179
|
For list-style commands, use `--pages <n>` to fetch N pages from the current starting point and `--max-items <n>` to cap the merged `data.items` output. Search commands support `--pages` but not `--all`, because search has no stable complete-result boundary.
|
|
@@ -186,6 +196,10 @@ XHS, Douyin, Kuaishou, Weibo, and WeChat Channels search use `--keyword` and opt
|
|
|
186
196
|
Kuaishou work search uses `kuaishou search --keyword` and optional `--page-token`; Kuaishou creator search uses `kuaishou user-search --keyword` and optional `--page-token`. Kuaishou search does not accept Douyin semantic filters, and `kuaishou user-search` does not support `--since-days`.
|
|
187
197
|
Weibo and WeChat Channels search use `--keyword` and optional `--page-token`.
|
|
188
198
|
|
|
199
|
+
XHS comments accept optional `--sort-type` values: `default`,
|
|
200
|
+
`time_descending`, and `like_count_descending`; omit it for the platform
|
|
201
|
+
default comment order.
|
|
202
|
+
|
|
189
203
|
Douyin search filters use semantic values: `--sort-type` supports `general`,
|
|
190
204
|
`time_descending`, and `like_count_descending`; `--publish-time-range` supports
|
|
191
205
|
`all`, `day`, `week`, and `half_year`; `--duration-range` supports `all`,
|
|
@@ -203,6 +217,7 @@ WeChat Channels search filters use semantic values: `--sort-type` supports
|
|
|
203
217
|
- Recommended: Node.js 22 LTS or newer.
|
|
204
218
|
- Minimum: Node.js 20.18.1.
|
|
205
219
|
- Node.js 18 and older are not supported.
|
|
220
|
+
- Local Bilibili download merge requires `ffmpeg` on `PATH` or `--ffmpeg-path <path>`.
|
|
206
221
|
|
|
207
222
|
### Environment
|
|
208
223
|
|
|
@@ -222,7 +237,7 @@ The public package declares no npm lifecycle scripts such as `preinstall`, `inst
|
|
|
222
237
|
|
|
223
238
|
## Platform Names
|
|
224
239
|
|
|
225
|
-
This project is not affiliated with, endorsed by, or sponsored by Xiaohongshu, RedNote, Douyin, Kuaishou, Kwai, Weibo, WeChat, WeChat Channels, or their affiliates. Platform names are used only to describe supported data sources.
|
|
240
|
+
This project is not affiliated with, endorsed by, or sponsored by Xiaohongshu, RedNote, Douyin, Kuaishou, Kwai, Bilibili, Weibo, WeChat, WeChat Channels, or their affiliates. Platform names are used only to describe supported data sources.
|
|
226
241
|
|
|
227
242
|
### Local Source Run
|
|
228
243
|
|
|
@@ -231,6 +246,7 @@ npm install
|
|
|
231
246
|
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs xhs search --keyword "露营" --pretty
|
|
232
247
|
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs douyin search --keyword "露营" --pretty
|
|
233
248
|
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs kuaishou search --keyword "露营" --pretty
|
|
249
|
+
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs bilibili download --url "<bilibili_video_url_or_share_text>" --output-dir ./downloads --pretty
|
|
234
250
|
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs weibo search --keyword "露营" --pretty
|
|
235
251
|
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs wechat search --keyword "露营" --pretty
|
|
236
252
|
SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>" node cli.mjs sensitive-check text --text "<content>" --platform xhs --pretty
|
|
@@ -287,6 +303,7 @@ npx -y socialdatax-skills@latest douyin transcript --aweme-id "<aweme_id>" --pre
|
|
|
287
303
|
npx -y socialdatax-skills@latest kuaishou hot-search --pretty
|
|
288
304
|
npx -y socialdatax-skills@latest kuaishou search --keyword "露营" --pretty
|
|
289
305
|
npx -y socialdatax-skills@latest kuaishou transcript --photo-id "<photo_id>" --pretty
|
|
306
|
+
npx -y socialdatax-skills@latest bilibili download --url "<bilibili_video_url_or_share_text>" --output-dir ./downloads --pretty
|
|
290
307
|
npx -y socialdatax-skills@latest weibo hot-search --pretty
|
|
291
308
|
npx -y socialdatax-skills@latest weibo search --keyword "露营" --pretty
|
|
292
309
|
npx -y socialdatax-skills@latest weibo transcript --post-id "<post_id>" --pretty
|
|
@@ -351,6 +368,12 @@ Current Kuaishou workflows include:
|
|
|
351
368
|
- Fetch paginated creator work lists from a non-empty user_id, or from a profile link, short link, or share text that resolves directly to a non-empty user_id. For live/fw-user profile shares, call creator profile first and use the returned non-empty user_id.
|
|
352
369
|
- Submit and check video work 口播转文字 / speech-to-text transcript jobs; submit tools 提交后最多等待 15 秒.
|
|
353
370
|
|
|
371
|
+
Current Bilibili workflows include:
|
|
372
|
+
|
|
373
|
+
- Resolve a Bilibili video page link or share text into short-lived DASH download links.
|
|
374
|
+
- Download the selected video and audio tracks locally.
|
|
375
|
+
- Merge the local tracks with `ffmpeg -c copy`.
|
|
376
|
+
|
|
354
377
|
Current Douyin workflows include:
|
|
355
378
|
|
|
356
379
|
- Fetch the current Douyin main hot search list.
|
|
@@ -405,8 +428,8 @@ Current Sensitive Words Check workflows include:
|
|
|
405
428
|
| `xhs_search_notes` | Search Xiaohongshu / 小红书 notes by keyword with optional sort, note type, and publish-time filters. |
|
|
406
429
|
| `xhs_get_note_detail_by_note_url` | Resolve a shared XHS link, short link, or share text into structured note details. |
|
|
407
430
|
| `xhs_get_note_detail_by_note_id` | Fetch structured note details when the caller already has a note ID. |
|
|
408
|
-
| `xhs_get_note_comments_by_note_id` | Fetch paginated first-level comments when the caller already has a note ID
|
|
409
|
-
| `xhs_get_note_comments_by_note_url` | Fetch paginated first-level comments directly from a shared note URL, short link, or share text
|
|
431
|
+
| `xhs_get_note_comments_by_note_id` | Fetch paginated first-level comments when the caller already has a note ID; accepts optional comment `sort_type`. |
|
|
432
|
+
| `xhs_get_note_comments_by_note_url` | Fetch paginated first-level comments directly from a shared note URL, short link, or share text; accepts optional comment `sort_type`. |
|
|
410
433
|
| `xhs_get_note_sub_comments_by_comment_id` | Fetch paginated replies under a first-level comment by note ID and comment ID. |
|
|
411
434
|
| `xhs_get_user_info_by_user_id` | Fetch creator profile data when the caller already has a user ID. |
|
|
412
435
|
| `xhs_get_user_info_by_profile_url` | Resolve a profile link, short link, or share text into creator profile data. |
|
|
@@ -457,6 +480,12 @@ Current Sensitive Words Check workflows include:
|
|
|
457
480
|
| `kuaishou_submit_video_speech_text_by_photo_id` | Submit a Kuaishou video speech-to-text transcript job when the caller already has a photo_id; submit waits up to 15 seconds. |
|
|
458
481
|
| `kuaishou_get_video_speech_text_job` | Check a Kuaishou speech-to-text transcript job by job_id without creating a new task. Returns transcript plus content context, not summary. |
|
|
459
482
|
|
|
483
|
+
## Bilibili Tools
|
|
484
|
+
|
|
485
|
+
| Tool | Public purpose |
|
|
486
|
+
| --- | --- |
|
|
487
|
+
| `bilibili_get_video_download_links` | Fetch short-lived DASH video/audio download links and merge guidance for a Bilibili video URL or share text. |
|
|
488
|
+
|
|
460
489
|
## Weibo Tools
|
|
461
490
|
|
|
462
491
|
| Tool | Public purpose |
|
|
@@ -510,12 +539,13 @@ export SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>"
|
|
|
510
539
|
npx -y socialdatax-skills@latest xhs search --keyword "露营" --pretty
|
|
511
540
|
npx -y socialdatax-skills@latest douyin search --keyword "露营" --pretty
|
|
512
541
|
npx -y socialdatax-skills@latest kuaishou search --keyword "露营" --pretty
|
|
542
|
+
npx -y socialdatax-skills@latest bilibili download --url "<bilibili_video_url_or_share_text>" --output-dir ./downloads --pretty
|
|
513
543
|
npx -y socialdatax-skills@latest weibo search --keyword "露营" --pretty
|
|
514
544
|
npx -y socialdatax-skills@latest wechat search --keyword "露营" --pretty
|
|
515
545
|
npx -y socialdatax-skills@latest sensitive-check text --text "<content>" --platform xhs --pretty
|
|
516
546
|
```
|
|
517
547
|
|
|
518
|
-
MCP client configuration belongs to platform or capability MCP listings. For XHS, use the `xhs-insights` docs; for Douyin, use the `douyin-insights` listing; for Kuaishou, use the `kuaishou-insights` listing; for Weibo, use the `weibo-insights` listing; for WeChat / 微信, use the `wechat-channels-insights` listing; for 敏感词检测 / 违禁词检查, use the `sensitive-check` server.
|
|
548
|
+
MCP client configuration belongs to platform or capability MCP listings. For XHS, use the `xhs-insights` docs; for Douyin, use the `douyin-insights` listing; for Kuaishou, use the `kuaishou-insights` listing; for Bilibili, use the `bilibili-insights` listing; for Weibo, use the `weibo-insights` listing; for WeChat / 微信, use the `wechat-channels-insights` listing; for 敏感词检测 / 违禁词检查, use the `sensitive-check` server.
|
|
519
549
|
|
|
520
550
|
Aily is treated as an OpenClaw / AgentSkills ecosystem channel for this package. Use the OpenClaw skill install flow for now; a dedicated `--target aily` will be added only after its official skill import or package format is confirmed.
|
|
521
551
|
|