一个 Claude Code Skill,用于从东方财富网抓取每日央视新闻联播要闻集锦。
- 自动在东方财富网搜索当日"新闻联播"关键词
- 定位并打开当天的《央视新闻联播要闻集锦》文章
- 提取文章正文 HTML 内容(自动去除视频和无关属性)
- 支持指定日期和无头模式运行
- Python 3.8+
- Playwright
pip install playwright
playwright install chromium将 cctv-news-scraper.skill 文件安装到 Claude Code 中即可使用。
# 抓取今天的新闻联播
python scripts/scrape_eastmoney.py
# 抓取指定日期
python scripts/scrape_eastmoney.py --date 2026-02-08
# 无头模式(不显示浏览器窗口)
python scripts/scrape_eastmoney.py --headlesscctv-news-scraper/
├── SKILL.md # Skill 定义文件
├── README.md
└── scripts/
└── scrape_eastmoney.py # 抓取脚本
- 新闻联播要闻集锦通常在每天 19:30(北京时间)之后发布
- 东方财富网页面结构可能变化,如抓取失败请检查页面选择器是否仍然有效
- 脚本使用 Playwright 模拟浏览器访问,需要已安装 Chromium
MIT