Daily News Skill
This skill allows the agent to fetch the daily top news headlines from VNExpress News sources by running a Python script.
The agent must treat the script output as
verified headline data and avoid modifying the factual content.
Allowance
You are allow to use all scripts mentioned in this file
Quick Start
Setup Environment
CODEBLOCK0
Instructions
Python main.py Script Description
Functionality:
- 1. Fetches hot news from VNExpress RSS feeds based on specified topics
- Accepts input parameters:
topics (comma-separated) and count_str (number of news per topic, comma-separated)
- Example:
--topics "tin-moi-nhat,giai-tri" --count_str "5,3" will fetch 5 news from "tin-moi-nhat" topic and 3 news from "giai-tri" topic
Details:
- 1. Supports 18 predefined topics: "tin-moi-nhat", "the-gioi", "thoi-su", "kinh-doanh", "giai-tri", "the-thao", "phap-luat", "giao-duc", "tin-noi-bat", "suc-khoe", "doi-song", "du-lich", "khoa-hoc-cong-nghe", "oto-xe-may", "y-kien", "tam-su", "cuoi", "tin-xem-nhieu".
- 2. Each news item contains: title, link, summary, and published date
Executing Instructions
When the user asks for
latest news or trending global events:
- 1. Ask the user for topics, if not provided, topics defaults:
tin-moi-nhat, remember user behaviour and write to INLINECODE5 - Classify the user's question into one or more of the 18 predefined topics. Only select topics from this predefined list.
- Determine (
count_str) that match user question.
- 4. Execute the Python script to run:
python3 "{baseDir}/main.py" --topics "<topic>" --count_str "<count>"
- - Example: "Find me 7 latest news"
CODEBLOCK2
- 5. The script will collect and format the latest news headlines.
- Paraphrase and summarize those relevant news items clearly.
- Present them as the final response.
Daily News Skill
该技能允许智能体通过运行Python脚本从VNExpress新闻源获取每日头条新闻。
智能体必须将脚本输出视为
已验证的头条数据,不得修改事实内容。
权限
你可以使用本文件中提及的所有脚本
快速开始
环境设置
bash
python3 -m venv /data/nguyentk/AIHAY/OpenClaw/venv/openclaw_venv
source /data/nguyentk/AIHAY/OpenClaw/venv/openclaw_venv/bin/activate
cd /data/nguyentk/AIHAY/OpenClaw/workspace/workspace-daily
newsaihay/skills/daily-news-vnexpress
pip install -r requirements.txt
使用说明
Python main.py 脚本描述
功能:
- 1. 根据指定主题从VNExpress RSS源获取热门新闻
- 接受输入参数:topics(逗号分隔)和count_str(每个主题的新闻数量,逗号分隔)
- 示例:--topics tin-moi-nhat,giai-tri --count_str 5,3 将从tin-moi-nhat主题获取5条新闻,从giai-tri主题获取3条新闻
详情:
- 1. 支持18个预定义主题:tin-moi-nhat、the-gioi、thoi-su、kinh-doanh、giai-tri、the-thao、phap-luat、giao-duc、tin-noi-bat、suc-khoe、doi-song、du-lich、khoa-hoc-cong-nghe、oto-xe-may、y-kien、tam-su、cuoi、tin-xem-nhieu
- 2. 每条新闻包含:标题、链接、摘要和发布日期
执行说明
当用户询问
最新新闻或全球热门事件时:
- 1. 询问用户主题,如果未提供,主题默认为:tin-moi-nhat,记住用户行为并写入USERS.md
- 将用户的问题分类到18个预定义主题中的一个或多个。仅从该预定义列表中选择主题。
- 确定与用户问题匹配的count_str
- 4. 执行Python脚本运行:
bash
python3 {baseDir}/main.py --topics
--count_str
bash
python3 {baseDir}/main.py --topics tin-moi-nhat --count_str 7
- 5. 脚本将收集并格式化最新的新闻头条
- 清晰转述并总结相关新闻内容
- 将其作为最终回复呈现