news-keyword-search

Search for the latest news by keywords

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "news-keyword-search" with this command: npx skills add MrNquyen/news-keyword-search

News Keyword Search Skill

This skill allows the agent to search for news articles based on user-provided keywords using a search API. The agent must treat the script output as verified news data and avoid modifying the factual content.

Allowance

You are allowed to use all scripts mentioned in this file

Quick Start

Setup Environment

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-news_finder/skills/news-keyword-search
pip install -r requirements.txt

Instructions

Python main.py Script Description

Functionality:

  1. Searches for news articles based on provided keywords
  2. Accepts input parameters:
    • --keyword_search (string, required): The keyword or topic to search for
    • --need_detail (boolean, default: True): Whether to fetch full article content or just descriptions

Return Data:

Each news item contains:

  • full_news: Complete article text (if need_detail is True)
  • news_description: Brief description of the article (if need_detail is False)
  • published_date: Publication date of the article
  • url: Link to the article

Execution Workflow

When the user asks about a specific news topic or looks for information:

Step 1: Check Conversation History

  1. Review the conversation history and memory files to see if the requested information is already available
  2. If the information exists and is within 3 days old, use the historical data instead of calling the tool
  3. If the information doesn't exist or is older than 3 days, proceed to Step 2

Step 2: Extract Keywords and Determine Detail Level

  1. Read and understand the user's question carefully
  2. Identify and extract main keywords that should be used for the search (e.g., "Tesla stock price", "climate change summit", "artificial intelligence")
  3. Determine if the user needs detailed information:
    • Set need_detail to True if:
      • User asks for detailed explanations, full articles, in-depth analysis
      • User wants to understand the topic thoroughly
    • Set need_detail to False if:
      • User only needs a brief overview or summary
      • User is looking for quick information

Step 3: Execute the Script

Execute the Python script with the extracted parameters:

python3 "{baseDir}/main.py" --keyword_search "<extracted_keywords>" --need_detail <True|False>

Examples:

Example 1: User asks "Give me news about electric cars"
  • Keywords: "electric cars"
  • Need detail: False (user wants overview)
python3 "{baseDir}/main.py" --keyword_search "electric cars" --need_detail False
Example 2: User asks "I need to understand the latest developments in quantum computing technology"
  • Keywords: "quantum computing"
  • Need detail: True (user wants in-depth understanding)
python3 "{baseDir}/main.py" --keyword_search "quantum computing" --need_detail True

Step 4: Process and Present Results

  1. Collect the search results from the script output
  2. Organize the news items in a clear, readable format
  3. Paraphrase and summarize the content appropriately
  4. Present the final response to the user with proper attribution to sources

Environment

The skill includes an openclaw_venv with all dependencies. Always activate before use:

source /data/nguyentk/AIHAY/OpenClaw/venv/openclaw_venv/bin/activate
cd /data/nguyentk/AIHAY/OpenClaw/workspace/workspace-news_finder/skills/news-keyword-search

baseDir is set to /data/nguyentk/AIHAY/OpenClaw/workspace/workspace-news_finder/skills/news-keyword-search

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Leads

Leads - command-line tool for everyday use

Registry SourceRecently Updated
General

Bmi Calculator

BMI计算器。BMI计算、理想体重、健康计划、体重追踪、儿童BMI、结果解读。BMI calculator with ideal weight, health plan. BMI、体重、健康。

Registry SourceRecently Updated
General

Blood

Blood — a fast health & wellness tool. Log anything, find it later, export when needed.

Registry SourceRecently Updated
General

Better Genshin Impact

📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI A better genshin impact, c#, auto-play-game, automatic, g...

Registry SourceRecently Updated