← 返回
开发者工具 Key 中文

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".
自动从谷歌新闻抓取结构化新闻数据。适用于主题新闻、行业趋势查询及公关监控。触发关键词:find news about、track trends、monitor PR。
phheng
开发者工具 clawhub v0.1.0 1 版本 99868.7 Key: 需要
★ 1
Stars
📥 2,262
下载
💾 69
安装
1
版本
#latest

概述

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
  1. 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
  1. 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.
  1. Retry Limit:
    • Maximum one automatic retry. If it still fails, stop and report the error to the user.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 16:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,689
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,964
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,610