Content Extractor logo

Content Extractor

Community
wulaosiji
content-extractor

多平台内容抓取与提取的统一中心,支持小宇宙播客、抖音、微信公众号、B站、小红书等平台的内容提取、批量下载和归档。 Use when: "提取播客内容", "下载抖音视频", "抓取公众号文章", "content extraction", "batch download media", "多平台内容聚合", "social media scraping", "内容归档备份". 支持快速模式和完整模式,返回标题、媒体URL、文本内容和元数据。Cross-references: wechat-article-fetcher, twitter-scraper, rss-feed, document-hub, pdf. Built by UniqueClub 🌐 https://uniqueclub.ai

Overview

Publisherwulaosiji
Repositoryskills
Skill namecontent-extractor
Stars
28
Forks
11
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by wulaosiji on GitHub. Read the source before you install it.

Installation

Install the Content Extractor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wulaosiji/skills/tree/main/content-extractor
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wulaosiji/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/content-extractor .claude/skills/content-extractor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Content Extractor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Content Extractor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Content Extractor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Content Extractor — 统一内容提取中心

多平台内容抓取与提取:小宇宙播客、抖音、微信公众号、B站、小红书。

When to Use

Use this skill when:

  • 需要从小宇宙、抖音、微信公众号、B站、小红书等平台提取内容
  • 批量下载音频、视频或文章进行归档
  • 将社交媒体内容转换为可编辑的文档格式
  • 收集多平台素材用于报告或研究
  • 需要提取媒体文件的直接下载链接
  • 监控和抓取公开的社交媒体内容

Do NOT use this skill if:

  • 需要访问私密/受保护的内容(需要登录态)→ 确认登录态后再使用
  • 抓取频率过高可能触发平台反爬机制 → 控制批量速率
  • 内容涉及版权限制或付费墙 → 不抓取付费内容
  • 需要实时抓取大量数据(有速率限制)
  • 目标平台需要特殊认证(如企业账号)

Typical triggers:

  • 「帮我提取小宇宙播客内容」「下载这个抖音视频」「抓取公众号文章」
  • "Extract podcast content", "Download video from URL", "Scrape WeChat article"
  • 「批量获取B站视频信息」「提取小红书笔记」「多平台内容汇总」
  • "Batch extract social media", "Get media download links", "Aggregate content"

Workflow

遵循六步推进法(探查→约束→证据→执行→验证→交付)完成操作。

  1. 探查 (Probe) 完整读取用户提供的URL列表,确认目标平台和提取需求。检测平台类型:
python
from skills.content_extractor.content_extractor import detect_platform

platform = detect_platform("https://www.xiaoyuzhoufm.com/episode/xxx")
# Returns: Platform.XIAOYUZHOU, Platform.DOUYIN, etc.
  1. 约束 (Constrain) 验证URL有效性,设定提取模式和边界。受阻时换通道,不降级交付物。
模式速度完整度适用场景
快速模式 (extract/extract_fast)3-5秒⭐⭐⭐仅需要标题+媒体URL
完整模式 (extract_full)10-30秒⭐⭐⭐⭐⭐需要详细描述和元数据
  1. 证据 (Evidence) 每个提取结果必须来自实际平台响应,不编造内容。收集平台返回的原始数据作为证据。

  2. 执行 (Execute) 调用提取脚本,先给影响与结论,再给行动和必要证据。

python
from skills.content_extractor.content_extractor import extract, extract_full

# 快速模式 - 推荐用于音频下载
result = extract("https://www.xiaoyuzhoufm.com/episode/xxx")

# 完整模式 - 推荐用于内容分析
result = extract_full("https://mp.weixin.qq.com/s/xxx")

结果处理:

python
print(result.title)           # 标题
print(result.media_urls)      # 媒体下载链接
print(result.content)         # 文本内容
print(result.author)          # 作者
print(result.metadata)        # 完整元数据

批量处理(可选):

python
from skills.content_extractor.content_extractor import batch_extract

urls = [url1, url2, url3]
results = batch_extract(urls, download_media=False)
  1. 验证 (Verify) 用不同于生成路径的方式回读输出——检查提取结果的标题非空、媒体URL可访问、内容长度合理。批量提取时抽查至少20%的结果。

  2. 交付 (Deliver) 返回结构化结果,清理临时下载文件(如设置了download_media=True且不需要保留)。

Output

返回 ExtractResult 数据结构:

python
@dataclass
class ExtractResult:
    platform: Platform          # 平台类型
    title: str                  # 标题
    content: str                # 内容/描述
    author: Optional[str]       # 作者
    publish_time: Optional[str] # 发布时间
    media_urls: List[str]       # 音频/视频URL列表
    images: List[str]           # 图片URL列表
    metadata: Dict[str, Any]    # 元数据(包含原始URL等)

批量提取返回 List[ExtractResult]。

Guardrails

以下约束确保安全、可靠地使用本技能。

Anti-patterns

  • NEVER 频繁抓取同一平台(可能触发反爬),批量提取时添加适当延迟
  • NEVER 抓取付费或版权保护内容
  • Do NOT 将下载内容用于商业用途
  • Do NOT 不处理提取失败的情况,始终捕获 ExtractError 异常

Constraints

  • 部分平台链接有时效性,过期后无法提取
  • 需要 Playwright 环境支持完整模式
  • 不处理图片/视频下载(仅返回URL,除非显式设置download_media)
  • 首次使用需要安装浏览器依赖:pip install playwright requests && playwright install chromium

Safety Rules

  1. 版权合规: 下载内容仅供个人学习使用
  2. 反爬友好: 批量提取时添加适当延迟
  3. 错误处理: 始终捕获 ExtractError 异常
  4. 隐私保护: 不抓取用户私密内容

Core Features

1. 单链接提取

快速模式(推荐)
python
from skills.content_extractor.content_extractor import extract, extract_fast

# 快速提取(默认)- 使用curl直接获取音频URL,速度最快
result = extract("https://www.xiaoyuzhoufm.com/episode/xxx")
print(result.title)           # 播客标题
print(result.media_urls)      # 音频下载链接
print(result.author)          # 播客名称

# 快速提取 + 下载音频
result = extract_fast(
    "https://www.xiaoyuzhoufm.com/episode/xxx",
    download=True,
    save_path="./downloads"
)
完整模式(需要Playwright)
python
from skills.content_extractor.content_extractor import extract_full

# 完整提取 - 使用浏览器渲染,获取更完整的信息
result = extract_full("https://www.xiaoyuzhoufm.com/episode/xxx")
print(result.content)         # 详细描述
print(result.metadata)        # 完整元数据

2. 批量提取

python
from skills.content_extractor.content_extractor import batch_extract

urls = [
    "https://www.xiaoyuzhoufm.com/episode/xxx",
    "https://mp.weixin.qq.com/s/xxx",
    "https://www.bilibili.com/video/xxx",
]

results = batch_extract(urls, download_media=False)
for result in results:
    print(f"{result.platform.value}: {result.title}")

3. 平台检测

python
from skills.content_extractor.content_extractor import detect_platform

platform = detect_platform("https://www.xiaoyuzhoufm.com/episode/xxx")
print(platform)  # Platform.XIAOYUZHOU

支持的平台

平台支持内容音频视频文字图片
小宇宙播客✅-✅-
抖音短视频✅✅--
微信公众号文章-✅✅✅
B站视频✅✅✅-
小红书笔记-✅✅✅

Options Parameters

参数类型默认值说明
download_mediaboolFalse是否下载音视频
save_pathstrNone下载保存路径
extract_textboolTrue是否提取文字内容

Error Handling

python
from skills.content_extractor.content_extractor import ExtractError

try:
    result = extract("https://invalid-url.com")
except ExtractError as e:
    print(f"提取失败: {e}")

Workflow Integration Examples

Workflow 1: 播客内容提取 → 生成文档

python
from skills.content_extractor.content_extractor import extract
from skills.document_hub.document_hub import write

# 提取播客
result = extract("https://www.xiaoyuzhoufm.com/episode/xxx")

# 生成Word文档
content = {
    "title": result.title,
    "paragraphs": [
        f"来源:小宇宙播客",
        f"作者:{result.author}",
        "",
        "内容描述:",
        result.content
    ]
}
write("播客笔记.docx", content)

Workflow 2: 多平台内容汇总 → Excel

python
from skills.content_extractor.content_extractor import batch_extract

urls = [
    "https://www.xiaoyuzhoufm.com/episode/xxx",
    "https://mp.weixin.qq.com/s/xxx",
    "https://www.bilibili.com/video/xxx",
]

results = batch_extract(urls)

# 汇总到Excel
excel_data = []
for result in results:
    excel_data.append({
        "平台": result.platform.value,
        "标题": result.title,
        "作者": result.author,
    })

write("内容汇总.xlsx", {"sheets": {"内容汇总": {"data": excel_data}}})

Extending New Platforms

python
# 在 ContentExtractor 类中添加新的提取方法
def _extract_new_platform(self, url: str, **options) -> ExtractResult:
    # 实现提取逻辑
    return ExtractResult(
        platform=Platform.NEW_PLATFORM,
        title="...",
        content="...",
        metadata={"url": url}
    )

# 在 __init__ 中注册
self.extractors[Platform.NEW_PLATFORM] = self._extract_new_platform

Related Skills

  • wechat-article-fetcher — 专门用于微信公众号文章抓取的专用替代
  • twitter-scraper — 抓取Twitter/X平台内容的平台扩展
  • rss-feed — RSS订阅源解析,作为无专用提取器平台的补充
  • document-hub — 下游处理:将提取内容生成Word/Excel文档
  • pdf — 下游处理:将内容转换为PDF格式

About UniqueClub

Part of the UniqueClub toolkit — a collection of skills for AI-powered content creation and automation. 🌐 https://uniqueclub.ai

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Content Extractor AI skill do?

多平台内容抓取与提取的统一中心,支持小宇宙播客、抖音、微信公众号、B站、小红书等平台的内容提取、批量下载和归档。 Use when: "提取播客内容", "下载抖音视频", "抓取公众号文章", "content extraction", "batch download media", "多平台内容聚合", "social media scraping", "内容归档备份". 支持快速模式和完整模式,返回标题、媒体URL、文本内容和元数据。Cross-references: wechat-article-fetcher, twitter-scraper, rss-feed, document-hub, pdf. Built by UniqueClub 🌐 https://uniqueclub.ai

Why use Content Extractor on TypingMind?

Because you install it once and use it with any model. Content Extractor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Content Extractor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wulaosiji/skills/tree/main/content-extractor. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Content Extractor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Content Extractor?

As many as you like. As long as a model supports skills, you can use Content Extractor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Content Extractor AI skill free?

It is published on GitHub by wulaosiji. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇