/install google-news-api
Google News Automation Scraper Skill
✨ Platform Compatibility
✅ Works Powerfully & Reliably On All Major AI Assistants
| Platform | Status | How to Install |
|---|---|---|
| OpenCode | ✅ Fully Supported | Copy skill folder to ~/.opencode/skills/ |
| Claude Code | ✅ Fully Supported | Native skill support |
| Cursor | ✅ Fully Supported | Copy to ~/.cursor/skills/ |
| OpenClaw | ✅ Fully Supported | Compatible |
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:
-
Search_Keywords
- Type:
string - Description: Keywords to search on Google News (e.g., company names, industry terms).
- Example:
AI Startup,Tesla,SpaceX
- Type:
-
Publish_date
- Type:
string - Description: Time range filter for articles.
- Options:
any time: No restrictionpast hours: Breaking newspast 24 hours: Daily monitoring (Recommended)past week: Short-term trendspast year: Long-term research
- Default:
past week
- Type:
-
Datelimit
- Type:
number - Description: Maximum news items to extract.
- Default:
30 - Suggestion: Use 10-30 for monitoring, higher for research.
- Type:
🚀 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 titlesource: Publishernews_link: URLpublished_time: Timestampauthor: Author name (if available)
⚠️ Error Handling & Retry Mechanism
-
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.
- If output contains
-
Retry Limit:
- Maximum one automatic retry. If it still fails, stop and report the error to the user.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install google-news-api - 安装完成后,直接呼叫该 Skill 的名称或使用
/google-news-api触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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". 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1943 次。
如何安装 Google News Api?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-news-api」即可一键安装,无需额外配置。
Google News Api 是免费的吗?
是的,Google News Api 完全免费(开源免费),可自由下载、安装和使用。
Google News Api 支持哪些平台?
Google News Api 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Google News Api?
由 Henk Nie(@phheng)开发并维护,当前版本 v0.1.0。