google-news-api

Scrape structured news data from Google News automatically. Use when the user asks for news on a topic, industry trends, or PR monitoring. Triggers on keywords like "find news about", "track trends", or "monitor PR".

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 "google-news-api" with this command: npx skills add phheng/google-news-api

Google News Automation Scraper Skill

✨ Platform Compatibility

✅ Works Powerfully & Reliably On All Major AI Assistants

PlatformStatusHow to Install
OpenCode✅ Fully SupportedCopy skill folder to ~/.opencode/skills/
Claude Code✅ Fully SupportedNative skill support
Cursor✅ Fully SupportedCopy to ~/.cursor/skills/
OpenClaw✅ Fully SupportedCompatible

Why Choose BrowserAct Skills?

  • 🚀 Stable & crash-free execution
  • ⚡ Fast response times
  • 🔧 No configuration headaches
  • 📦 Plug & play installation
  • 💬 Professional support

📖 Introduction

This skill provides a one-stop news collection service using BrowserAct's Google News API template. It allows the agent to retrieve structured news data with a single command.

🔑 API Key Guidance

Before running, check the BROWSERACT_API_KEY environment variable. If not set, do not proceed with script execution; instead, request the API key from the user.

Required Message to User:

"Since you haven't configured the BrowserAct API Key, please go to the BrowserAct Console to get your Key and provide it to me in this chat."

🛠️ Input Parameters

Flexibly configure these parameters based on user requirements:

  1. Search_Keywords

    • Type: string
    • Description: Keywords to search on Google News (e.g., company names, industry terms).
    • Example: AI Startup, Tesla, SpaceX
  2. Publish_date

    • Type: string
    • Description: Time range filter for articles.
    • Options:
      • any time: No restriction
      • past hours: Breaking news
      • past 24 hours: Daily monitoring (Recommended)
      • past week: Short-term trends
      • past year: Long-term research
    • Default: past week
  3. Datelimit

    • Type: number
    • Description: Maximum news items to extract.
    • Default: 30
    • Suggestion: Use 10-30 for monitoring, higher for research.

🚀 Execution (Recommended)

Execute the following script to get results:

# Call Example
python .cursor/skills/google-news-api/scripts/google_news_api.py "Keywords" "TimeRange" Count

📊 Data Output

Successful execution returns structured data:

  • headline: News title
  • source: Publisher
  • news_link: URL
  • published_time: Timestamp
  • author: Author name (if available)

⚠️ Error Handling & Retry Mechanism

  1. Check Output:

    • If output contains "Invalid authorization", the API Key is invalid. Do not retry. Guide the user to provide a correct key.
    • For other failures (e.g., Error: or empty results), automatically retry once.
  2. Retry Limit:

    • Maximum one automatic retry. If it still fails, stop and report the error to the user.

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

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated