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
conda activate openclaw_venv
cd /data/nguyentk/AIHAY/OpenClaw/workspace/workspace-news_reporter/skills/daily-news-vnexpress
pip install -r "{baseDir}/requirements.txt
Instructions
Python main.py Script Description
Functionality:
- 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:
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".
Each news item contains: title, link, summary, and published date
Executing Instructions
When the user asks for latest news or trending global events:
Ask the user for topics, if not provided, topics defaults: tin-moi-nhat, remember user behaviour and write to USERS.md
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.
Execute the Python script to run:
python "{baseDir}/main.py" --topics "<topic>" --count_str "<count>"
- Example: "Find me 7 latest news"
python "{baseDir}/main.py" --topics "tin-moi-nhat" --count_str "7"
- The script will collect and format the latest news headlines.
- Paraphrase and summarize those relevant news items clearly.
- Present them as the final response.
Environment
The skill includes a openclaw_venv with all dependencies. Always activate before use:
conda activate openclaw_venv
cd /data/nguyentk/AIHAY/OpenClaw/workspace/workspace-news_reporter/skills/daily-news-vnexpress
baseDir is set to /data/nguyentk/AIHAY/OpenClaw/workspace/workspace-news_reporter/skills/daily-news-vnexpress
1---2name: daily-news-vnexpress3description: Fetch the latest trending global news from https://vnexpress.net/rss/{topic}.rss.4---56# Daily News Skill7This skill allows the agent to fetch the daily top news headlines from VNExpress News sources by running a Python script.8The agent must treat the script output as **verified headline data** and avoid modifying the factual content.91011# Allowance12You are allow to use all scripts mentioned in this file131415## Quick Start16### Setup Environment17```bash18conda activate openclaw_venv19cd /data/nguyentk/AIHAY/OpenClaw/workspace/workspace-news_reporter/skills/daily-news-vnexpress20pip install -r "{baseDir}/requirements.txt21```222324## Instructions25### Python `main.py` Script Description26#### Functionality:271. Fetches hot news from VNExpress RSS feeds based on specified topics282. Accepts input parameters: `topics` (comma-separated) and `count_str` (number of news per topic, comma-separated)29 - 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" topic3031#### Details:321. 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".33342. Each news item contains: title, link, summary, and published date353637### Executing Instructions38When the user asks for **latest news or trending global events**:391. Ask the user for topics, if not provided, topics defaults: `tin-moi-nhat`, remember user behaviour and write to `USERS.md`402. Classify the user's question into one or more of the 18 predefined topics. Only select topics from this predefined list.413. Determine (`count_str`) that match user question. 42434. Execute the Python script to run:44```bash45python "{baseDir}/main.py" --topics "<topic>" --count_str "<count>"46```47- Example: "Find me 7 latest news"48```bash49python "{baseDir}/main.py" --topics "tin-moi-nhat" --count_str "7"50```51525. The script will collect and format the latest news headlines.536. Paraphrase and summarize those relevant news items clearly.547. Present them as the final response.555657## Environment58The skill includes a openclaw_venv with all dependencies. Always activate before use:59```bash60conda activate openclaw_venv61cd /data/nguyentk/AIHAY/OpenClaw/workspace/workspace-news_reporter/skills/daily-news-vnexpress62```63`baseDir` is set to `/data/nguyentk/AIHAY/OpenClaw/workspace/workspace-news_reporter/skills/daily-news-vnexpress`