Noticias Cangrejo

v1.0.4

Fetch and summarize recent news articles from GNews on any topic, generating a concise Markdown digest with date, greeting, and top links.

0· 830· 5 versions· 2 current· 2 all-time· Updated 3h ago· MIT-0

Install

openclaw skills install noticias-cangrejo

NoticiasCangrejo

Generate a Markdown news digest for any topic using the GNews API.

When To Use

Use this skill when the user asks for recent news on any topic, such as politics, science, startups, health, finance, sports, or local events, and wants a concise, linkable summary.

Environment Requirement

Set this environment variable before execution:

  • GNEWS_API_KEY

Workflow

  1. Receive a topic from the user.
  2. Validate that GNEWS_API_KEY exists.
  3. Query GNews Search API for up to 20 articles using topic + language.
  4. Compute relevance based on topic-word overlap against article title and description.
  5. Keep the top 15 ranked articles.
  6. Print Markdown output with:
    • Date (YYYY/MM/DD)
    • Greeting line in Spanish
    • Topic line
    • Numbered list of article title + URL
  7. Optionally save output to a file with --output.

Execution

Canonical OpenClaw execution is defined in _meta.json under run:

python3 scripts/fetch_news.py "<topic>"

Optional parameters:

  • --lang (default: en)
  • --max-articles (default: 20)
  • --output to write Markdown to a file

Example Usage

export GNEWS_API_KEY="your_api_key_here"
python3 scripts/fetch_news.py "global markets" --lang en --max-articles 20 --output ./markets.md

Version tags

apivk978he3r2zdfamsrqa1j3cqm61817a5jdigestvk978he3r2zdfamsrqa1j3cqm61817a5jgnewsvk978he3r2zdfamsrqa1j3cqm61817a5jlatestvk978he3r2zdfamsrqa1j3cqm61817a5jmarkdownvk978he3r2zdfamsrqa1j3cqm61817a5jnewsvk978he3r2zdfamsrqa1j3cqm61817a5jpythonvk978he3r2zdfamsrqa1j3cqm61817a5j

Runtime requirements

🦀 Clawdis
EnvGNEWS_API_KEY