google-news-api-skill
它能做什么
该技能根据你设置的关键词和时间范围,从 Google 新闻中提取结构化的新闻结果。适用于跟踪某个行业、品牌或竞争对手新闻的人员。
适用场景
- ✓当你想跟进某个特定话题的最新新闻时。
- ✓当你需要监测某个品牌在媒体上被提及的情况时。
- ✓当你想获取一组关键词的近期报道列表时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/search-research/google-news-api-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请查找过去一周关于电动自行车的最新新闻,包括标题、来源和链接。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能将你的关键词和时间筛选条件发送给 BrowserAct 模板。模板读取 Google 新闻结果,并为每条报道返回标题、来源、发布时间和文章链接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google News Automation Skill
📖 Introduction
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.
✨ Features
- No Hallucinations: Pre-set workflows avoid AI generative hallucinations, ensuring stable and precise data extraction.
- No Captcha Issues: No need to handle reCAPTCHA or other verification challenges.
- No IP Restrictions: No need to handle regional IP restrictions or geofencing.
- Faster Execution: Tasks execute faster compared to pure AI-driven browser automation solutions.
- Cost-Effective: Significantly lowers data acquisition costs compared to high-token-consuming AI solutions.
🔑 API Key Setup
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."
🛠️ Input Parameters
Agent should flexibly configure the following parameters based on user needs:
Search_Keywords (Search Keywords)
- 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:
Publish_date (Time Range)
- Type:
string - Description: Filter news by publication time.
- Options:
any time: No restrictionpast 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:
Datelimit (Max Items)
- 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.
- Type:
🚀 Usage
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
⏳ Execution Monitoring
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:
- While waiting for the script result, keep monitoring the terminal output.
- As long as the terminal is outputting new status logs, the task is running normally; do not mistake it for a deadlock or unresponsiveness.
- Only if the status remains unchanged for a long time or the script stops outputting without returning a result should you consider triggering the retry mechanism.
📊 Data Output
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)
⚠️ Error Handling & Retry
If an error occurs during script execution (e.g., network fluctuations or task failure), the Agent should follow this logic:
Check Output Content:
- 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 withError:or returns empty results), the Agent should automatically try to re-execute the script once.
- If the output contains
Retry Limit:
- Automatic retry is limited to one time. If the second attempt fails, stop retrying and report the specific error information to the user.
🌟 Typical Use Cases
- Industry Trend Tracking: Find the latest developments in fields like "Low-altitude economy" or "Generative AI".
- PR Monitoring: Monitor media exposure of a specific brand or company over the past 24 hours.
- Competitor Intelligence: Collect information on new products or marketing activities from competitors over the past week.
常见问题
我可以按日期筛选吗?
可以。你可以设置时间筛选,使结果中只出现近期文章。
每条结果包含什么?
每条结果包含标题、来源、发布时间和文章链接。
我需要密钥吗?
需要。它需要在 BROWSERACT_API_KEY 设置中配置 BrowserAct API 密钥。
详情
作者的原始描述
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 res
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14297
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。