cctv-news-fetcher
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCCTV News Fetcher
CCTV新闻抓取工具
This skill allows you to fetch summary titles and content from the CCTV News Broadcast for any specific date.
该Skill可以帮你获取任意指定日期的央视《新闻联播》摘要标题及内容。
Usage
使用方法
You can ask the agent to:
- "Fetch CCTV news for 20250210"
- "Give me the news highlights for yesterday"
你可以让Agent执行以下操作:
- "获取20250210的央视新闻"
- "给我昨天的新闻要闻"
Instructions
操作说明
When the user asks for news from a specific date:
- Format the date as . If the user says "yesterday" or "today", calculate the date relative to the current local time.
YYYYMMDD - Execute the script at using
{baseDir}/scripts/news_crawler.jsorbun.node- Command:
bun {baseDir}/scripts/news_crawler.js <YYYYMMDD>
- Command:
- Parse the JSON output and summarize it for the user. Group news by "Domestic" and "International" if possible based on titles, or just list the highlights.
当用户请求指定日期的新闻时:
- 将日期格式化为格式。如果用户说“昨天”或“今天”,则根据当前本地时间计算对应的日期。
YYYYMMDD - 使用或
bun执行node脚本。{baseDir}/scripts/news_crawler.js- 命令:
bun {baseDir}/scripts/news_crawler.js <YYYYMMDD>
- 命令:
- 解析JSON输出并为用户生成摘要。如果可以根据标题区分“国内”和“国际”新闻,则按此分组,否则直接列出要闻。
Configuration
配置要求
The skill depends on .
Ensure is installed in the environment.
node-html-parserbun该Skill依赖库。
确保环境中已安装。
node-html-parserbun