This skill helps users automatically extract structured news data from Google News via BrowserAct API. Agent should proactively apply this skill when users e...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install google-news-api-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install google-news-api-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/google-news-api-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: google-news-api-skill description: "This skill helps users automatically extract structured news data from Google News via BrowserAct API. Agent should proactively apply this skill when users express needs like searching for news about a specific topic, tracking industry trends, monitoring public relations or sentiment, collecting competitor updates, getting latest reports on specific keywords, monitoring brand exposure in media, researching market hot topics, summarizing daily industry news, tracking media activities of specific individuals, retrieving hot events from the past 24 hours, extracting structured data for market research, monitoring global breaking news." metadata: {"clawdbot":{"emoji":"🌐","requires":{"bins":["python"],"env":["BROWSERACT_API_KEY"]}}} ---
This skill provides a one-stop news collection service using BrowserAct's Google News API template. It directly extracts structured news results from Google News, including headlines, sources, publication times, and article links. Simply input search keywords and time filters to get clean, usable news data.
Before running, check the BROWSERACT_API_KEY environment variable. If not set, do not take other measures; ask and wait for the user to provide it. Agent must inform the user: > "Since you haven't configured the BrowserAct API Key, please visit the BrowserAct Console to get your Key."
Agent should flexibly configure the following parameters based on user needs:
- Type: string - Description: The content to search on Google News. Can be company names, industry terms, competitor names, etc. - Example: AI Startup, Tesla, SpaceX
- Type: string - Description: Filter news by publication time. - Options: - any time: No restriction - past hours: Past few hours (breaking news) - past 24 hours: Past 24 hours (daily monitoring) - past week: Past week (short-term trends) - past year: Past year (long-term research) - Default: past week
- Type: number - Description: Maximum number of news items to extract per task. - Default: 30 - Suggestion: Use 10-30 for real-time monitoring; use larger values for deep research.
Agent should use the following independent script to achieve "one-line command result":
# Example
python -u ./scripts/google_news_api.py "Search Keywords" "Publish Date" Quantity
Since this task involves automated browser operations, it may take some time (several minutes). The script will continuously output status logs with timestamps (e.g., [14:30:05] Task Status: running). Agent Instructions:
After successful execution, the script parses and prints results directly from the API response. Results include:
headline: News titlesource: Publisher/Sourcenews_link: Article URLpublished_time: Publication timeauthor: Author (if available)If an error occurs during script execution (e.g., network fluctuations or task failure), the Agent should follow this logic:
- If the output contains "Invalid authorization", it means the API Key is invalid or expired. Do not retry; guide the user to re-check and provide the correct API Key. - If the output does not contain "Invalid authorization" but the task failed (e.g., output starts with Error: or returns empty results), the Agent should automatically try to re-execute the script once.
- Automatic retry is limited to one time. If the second attempt fails, stop retrying and report the specific error information to the user.
安装 Google News Api Skill 后,可以对 AI 说这些话来触发它
Help me get started with Google News Api Skill
Explains what Google News Api Skill does, walks through the setup, and runs a quick demo based on your current project
Use Google News Api Skill to this skill helps users automatically extract structured news data f...
Invokes Google News Api Skill with the right parameters and returns the result directly in the conversation
What can I do with Google News Api Skill in my data & analytics workflow?
Lists the top use cases for Google News Api Skill, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/google-news-api-skill/ 目录(个人级,所有项目可用),或 .claude/skills/google-news-api-skill/(项目级)。重启 AI 客户端后,用 /google-news-api-skill 主动调用,或让 AI 根据上下文自动发现并使用。
Google News Api Skill 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Google News Api Skill 可免费安装使用。请查阅仓库了解许可证信息。
This skill helps users automatically extract structured news data from Google News via BrowserAct API. Agent should proactively apply this skill when users e...
Google News Api Skill 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Google News Api Skill
Identifies repetitive steps in your workflow and sets up Google News Api Skill to handle them automatically