cctv-news-fetcher

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

CCTV 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:
  1. Format the date as
    YYYYMMDD
    . If the user says "yesterday" or "today", calculate the date relative to the current local time.
  2. Execute the script at
    {baseDir}/scripts/news_crawler.js
    using
    bun
    or
    node
    .
    • Command:
      bun {baseDir}/scripts/news_crawler.js <YYYYMMDD>
  3. 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.
当用户请求指定日期的新闻时:
  1. 将日期格式化为
    YYYYMMDD
    格式。如果用户说“昨天”或“今天”,则根据当前本地时间计算对应的日期。
  2. 使用
    bun
    node
    执行
    {baseDir}/scripts/news_crawler.js
    脚本。
    • 命令:
      bun {baseDir}/scripts/news_crawler.js <YYYYMMDD>
  3. 解析JSON输出并为用户生成摘要。如果可以根据标题区分“国内”和“国际”新闻,则按此分组,否则直接列出要闻。

Configuration

配置要求

The skill depends on
node-html-parser
. Ensure
bun
is installed in the environment.
该Skill依赖
node-html-parser
库。 确保环境中已安装
bun