用途:通过 RSS 抓取并展示 BBC 新闻,适合用户查询 BBC 新闻、英国头条或世界新闻等场景。
主要能力:支持多个板块与地区,包括 top(默认头条)、uk、world、business、politics、health、education、science、technology、entertainment;英国地区:england、scotland、wales、northern-ireland;世界地区:africa、asia、australia、europe、latin-america、middle-east、us-canada。可限制返回条数并输出 JSON。
使用方式: 抓取头条:python3 scripts/bbc_news.py 指定板块:python3 scripts/bbc_news.py uk / world / technology 列出全部板块:python3 scripts/bbc_news.py --list 限制条数:python3 scripts/bbc_news.py world --limit 5 JSON 输出:python3 scripts/bbc_news.py technology --json
输出要求:最终回复应将标题翻译为中文,可在中文标题后附英文原标题。示例:python3 scripts/bbc_news.py uk --limit 5;python3 scripts/bbc_news.py scotland --json;python3 scripts/bbc_news.py technology --limit 3。
依赖:需要 feedparser,安装命令 pip3 install feedparser。
资源:scripts/bbc_news.py 为 Python CLI,抓取并展示 BBC 新闻 RSS;references/feeds.md 为按板块与地区整理的 BBC News RSS 订阅地址列表。
限制:资料未提供其他功能、收费、平台或效果信息。