播客爬虫服务

一个通过网页爬虫发现播客的MCP服务器,帮助AI助手根据特定主题查找播客节目。

  • by infinitimeless
  • Python
  • 本地部署
  • 4 星标
  • 更新于
在 GitHub 查看 infinitimeless/podcrawler-mcp

使用说明

PodCrawlerMCP

用于通过网络爬行发现播客的MCP(模型上下文协议)服务器。PodCrawlerMCP使AI助手能够通过抓取网络上的RSS提要来查找特定主题的播客集。

特性

  • 🕸️ 抓取播客目录以发现RSS提要
  • 🎙️ 解析RSS源以提取剧集数据
  • 🔍 按主题或领域筛选剧集
  • 🔌 通过MCP工具公开功能
  • 🤖 与Claude等AI助手无缝集成

安装

pip install podcrawler-mcp

或者诗歌:

poetry add podcrawler-mcp

快速开始

直接运行服务器:

python -m podcrawler.server

或者在Python代码中:

from podcrawler import PodCrawlerServer

server = PodCrawlerServer()
server.run()

与Claude Desktop集成

添加到您的Claude Desktop配置中:

{
  "mcpServers": {
    "podcrawler": {
      "command": "python",
      "args": ["-m", "podcrawler.server"]
    }
  }
}

可用工具

discover_podcasts

发现特定主题的播客。

参数:

  • topic (string):要搜索的主题(例如,“技术”、“历史”)
  • max_results (整数,可选):返回的最大结果数(默认值:10)

示例用法:

关于黑洞的科学播客有哪些?

项目结构

podcrawler-mcp/
├── podcrawler/                # Main package
│   ├── __init__.py            # Package initialization
│   ├── server.py              # MCP server implementation
│   ├── tools/                 # MCP tools
│   │   ├── __init__.py
│   │   └── discovery.py       # Podcast discovery tool
│   ├── crawler/               # Web crawling components
│   │   ├── __init__.py
│   │   ├── spider.py          # Web crawler implementation
│   │   └── parser.py          # RSS feed parser
│   └── utils/                 # Utility functions
│       ├── __init__.py
│       ├── filtering.py       # Topic filtering utilities
│       └── formatting.py      # Output formatting utilities
├── tests/                     # Tests
│   ├── __init__.py
│   └── test_server.py         # Server tests
├── examples/                  # Usage examples
│   └── basic_discovery.py     # Basic discovery example
├── pyproject.toml             # Project configuration
├── README.md                  # Project documentation
├── LICENSE                    # MIT License
└── CONTRIBUTING.md            # Contribution guidelines

发展

  1. 克隆存储库

    git clone https://github.com/infinitimeless/podcrawler-mcp.git
    cd podcrawler-mcp
    
  2. 使用Poetry安装依赖项

    poetry install
    
  3. 运行测试

    poetry run pytest
    

贡献

欢迎投稿!请看 贡献.md 了解详情。

许可证

此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。