闲社服务运行正常AI智能体自动化平台
s

社交媒体数据中枢

技能标识:social-media-data-hub

Unified Apify-based retrieval for TikTok, Instagram, X/Twitter, and YouTube profile, post, and comment data with cross-platform normalization for analysis workflows.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
1
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

社交媒体数据中枢

社交媒体数据枢纽

通过统一的工作流程,使用Apify从TikTok、Instagram、X/Twitter和YouTube收集社交媒体数据。

核心功能

  1. 1. 个人资料查询 - 获取个人资料元数据,如粉丝数、内容数量和简介。
  2. 批量帖子检索 - 拉取账号的近期或热门帖子及其互动指标。
  3. 单帖查询 - 输入帖子URL,返回包含关键指标的标准记录。
  4. 评论检索 - 获取支持的帖子URL下的评论线程。
  5. 跨平台标准化 - 将所有支持的平台映射到统一的共享模式进行分析。

Actor映射

平台Actor ID用途
TikTokclockworks/tiktok-scraper个人资料、帖子、评论
Instagram
apify/instagram-scraper | 个人资料、帖子、评论 | | X/Twitter(批量) | apidojo/tweet-scraper | 批量推文检索(50条以上) | | X/Twitter(精确) | apidojo/twitter-scraper-lite | 单条推文、对话或小批量 | | YouTube | streamers/youtube-scraper | 频道和视频 |

使用方法

所有脚本位于{baseDir}/scripts/目录下,使用python3执行,返回JSON格式数据。

个人资料查询

bash
python3 {baseDir}/scripts/fetch_profile.py --platform tiktok --username khaby.lame
python3 {baseDir}/scripts/fetch_profile.py --platform instagram --username natgeo
python3 {baseDir}/scripts/fetch_profile.py --platform twitter --username elonmusk
python3 {baseDir}/scripts/fetch_profile.py --platform youtube --channel-url https://www.youtube.com/@MrBeast

批量帖子检索

bash
python3 {baseDir}/scripts/fetch_posts.py --platform tiktok --username khaby.lame --count 20
python3 {baseDir}/scripts/fetch_posts.py --platform instagram --username natgeo --count 30
python3 {baseDir}/scripts/fetch_posts.py --platform twitter --username elonmusk --count 100
python3 {baseDir}/scripts/fetch_posts.py --platform youtube --channel-url https://www.youtube.com/@MrBeast --count 50

单帖查询

bash
python3 {baseDir}/scripts/fetchsinglepost.py --url https://www.tiktok.com/@user/video/123456
python3 {baseDir}/scripts/fetchsinglepost.py --url https://www.instagram.com/p/ABC123/
python3 {baseDir}/scripts/fetchsinglepost.py --url https://x.com/user/status/123456
python3 {baseDir}/scripts/fetchsinglepost.py --url https://www.youtube.com/watch?v=ABC123

评论检索

bash
python3 {baseDir}/scripts/fetch_comments.py --url https://www.tiktok.com/@user/video/123456 --count 50
python3 {baseDir}/scripts/fetch_comments.py --url https://www.instagram.com/p/ABC123/ --count 30
python3 {baseDir}/scripts/fetch_comments.py --url https://x.com/user/status/123456 --count 100

跨平台标准化

normalize.py被fetch脚本内部使用,也可以直接运行:

bash
echo | python3 {baseDir}/scripts/normalize.py --platform tiktok --type post

统一数据模型

标准化帖子(NormalizedPost)

字段类型描述
platform字符串tiktok / instagram / twitter / youtube
post_id
字符串 | 平台原生帖子ID | | post_url | 字符串 | 帖子URL | | text | 字符串 | 标题、正文或描述 | | created_at | 字符串 | ISO 8601时间戳 | | author_name | 字符串 | 作者用户名 | | authordisplayname | 字符串 | 显示名称 | | likes | 整数 | 点赞数 | | comments | 整数 | 评论数 | | shares | 整数 | 分享或转发数,或null | | views | 整数 | 观看或播放数,或null | | saves | 整数 | 收藏或书签数,或null | | hashtags | 列表 | 标签列表 | | media_type | 字符串 | video / image / text / carousel |

标准化个人资料(NormalizedProfile)

字段类型描述
platform字符串平台标识
username
字符串 | 用户名或账号 | | display_name | 字符串 | 显示名称 | | bio | 字符串 | 个人简介或资料摘要 | | followers | 整数 | 粉丝数 | | following | 整数 | 关注数,或null | | posts_count | 整数 | 内容总数,或null | | profile_url | 字符串 | 个人资料URL | | verified | 布尔值 | 认证状态 |

成本参考(BRONZE层级)

操作TikTokInstagramX/TwitterYouTube
每条帖子$0.003$0.0023$0.0004$0.003
批量1000条
$3.00 | $2.30 | $0.40 | $3.00 | | 单条查询 | ~$0.50(最低收费) | $0.0023 | $0.05 | $0.003 |

详见{baseDir}/references/apifyactorsreference.md,了解actor输入、选择指南和定价详情。

注意事项

  • - TikTok每次运行有$0.50的最低收费,因此批量检索通常比单条查询更具成本效益。
  • 对于X/Twitter,当需要50条及以上内容时使用tweet-scraper,小批量或单条推文使用twitter-scraper-lite。
  • Instagram每条帖子的评论限制为50条。
  • YouTube评论不通过这些脚本处理;请使用专用的YouTube评论抓取actor。
  • 所有脚本直接调用Apify REST API,不依赖apify-client SDK。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 social-media-data-hub-1776123318 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 social-media-data-hub-1776123318 技能

通过命令行安装

skillhub install social-media-data-hub-1776123318

下载

⬇ 下载 social-media-data-hub v1.0.0(免费)

文件大小: 14.17 KB | 发布时间: 2026-4-14 11:47

v1.0.0 最新 2026-4-14 11:47
Initial release of Social Media Data Hub.

- Unified Apify-based retrieval for TikTok, Instagram, X/Twitter, and YouTube.
- Supports profile, post, and comment data extraction with cross-platform normalization.
- Standardized data models for posts and profiles to streamline analysis.
- Command-line Python scripts for all core functions, returning normalized JSON.
- Documentation includes usage examples, actor mapping, and cost reference.
返回顶部