๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ
ๅฐ้พ™่™พๅฐ้พ™่™พAI
๐Ÿค–

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".

ไธ‹่ฝฝ1.5k
ๆ˜Ÿๆ ‡0
็‰ˆๆœฌ0.1.0
ไปฃ็ ๅไฝœ
ๅฎ‰ๅ…จ้€š่ฟ‡

ๆŠ€่ƒฝ่ฏดๆ˜Ž


name: google-news-api description: 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".

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.

ๅฆ‚ไฝ•ไฝฟ็”จใ€ŒGoogle News Apiใ€๏ผŸ

  1. ๆ‰“ๅผ€ๅฐ้พ™่™พAI๏ผˆWeb ๆˆ– iOS App๏ผ‰
  2. ็‚นๅ‡ปไธŠๆ–นใ€Œ็ซ‹ๅณไฝฟ็”จใ€ๆŒ‰้’ฎ๏ผŒๆˆ–ๅœจๅฏน่ฏๆก†ไธญ่พ“ๅ…ฅไปปๅŠกๆ่ฟฐ
  3. ๅฐ้พ™่™พAI ไผš่‡ชๅŠจๅŒน้…ๅนถ่ฐƒ็”จใ€ŒGoogle News Apiใ€ๆŠ€่ƒฝๅฎŒๆˆไปปๅŠก
  4. ็ป“ๆžœๅณๆ—ถๅ‘ˆ็Žฐ๏ผŒๆ”ฏๆŒ็ปง็ปญๅฏน่ฏไผ˜ๅŒ–

็›ธๅ…ณๆŠ€่ƒฝ