‹ 首页

google-maps-search-api-skill

@browser-act · 收录于 1 周前 · 上游提交 2 天前

This skill is designed to help users automatically extract business data from Google Maps search results. The Agent should proactively apply this skill when the user makes the following requests searching for coffee shops in a specific city, finding dentists or medical clinics nearby, tracking competitors' locations in a certain area, extracting business leads from Google Maps lists, gathering restaurant data for market research, finding hotels or accommodation options in a region, locating specific services like coworking spaces or gyms, monitoring new business openings in a neighborhood, collecting contact information and addresses for sales prospecting, analyzing price ranges and cuisines of local eateries, getting ratings and review counts for a list of businesses, exporting local business data into a CRM or database.

适合你,如果需要从谷歌地图批量获取商家信息用于销售或分析。

/ 下载安装
google-maps-search-api-skill.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add browser-act/skills/google-maps-search-api-skill
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- browser-act/skills/google-maps-search-api-skill
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify browser-act/skills/google-maps-search-api-skill
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
4386GitHub stars
~1.3K最小装载
~2.2K含声明引用
~2.2K文本包总量
镜像托管

怎么用

商店整理自技能原文 · 版本 51daea1 · 表述以原文为准
它做什么

安装后,Claude 能根据你的要求,自动从 Google 地图搜索结果中提取商家数据,如名称、地址、评分、评论数、价格范围等。

什么时候触发

当你需要查找特定类型的商家(如咖啡店、牙医、酒店),或收集商家信息用于市场调研、销售线索时触发。

装好后可以这样说
Claude 会调用技能搜索并返回结果。
Claude 会提取商家数据供你使用。
技能原文 SKILL.md作者撰写 · MIT · 51daea1

Google Maps Search Automation Skill

📖 Introduction

This skill utilizes the BrowserAct Google Maps Search API template to provide a one-stop business data collection service. It extracts structured business results directly from Google Maps search lists. Simply provide search keywords, language, and country filters to get clean, usable business data.

✨ Features
  1. No Hallucinations: Pre-set workflows avoid AI generative hallucinations, ensuring stable and precise data extraction.
  2. No Captcha Issues: No need to handle reCAPTCHA or other verification challenges.
  3. No IP Restrictions: No need to handle regional IP restrictions or geofencing.
  4. Faster Execution: Tasks execute faster compared to pure AI-driven browser automation solutions.
  5. 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

When calling the script, the Agent should flexibly configure the following parameters based on user needs:

  1. KeyWords
  2. Type: string
  3. Description: The content you want to search on Google Maps. Can be business names, categories, or specific keywords.
  4. Example: coffee shop, dental clinic, coworking space
  1. language
  2. Type: string
  3. Description: Sets the UI language and the language of returned text fields.
  4. Common Values: en, de, fr, it, es, ja, zh-CN, zh-TW
  5. Default: en
  1. country
  2. Type: string
  3. Description: Sets the country or region bias for search results.
  4. Example: us, gb, ca, au, de, fr, jp
  5. Default: us
  1. max_dates
  2. Type: number
  3. Description: The maximum number of places to extract from the search results list.
  4. Default: 100
🚀 Usage

The Agent should execute the following independent script to achieve "one-line command result":

# Example call
python -u ./scripts/google_maps_search_api.py "search keywords" "language" "country" count
⏳ 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. Fields include:

  • name: Business name
  • full address: Full address
  • rating: Star rating
  • review count: Number of reviews
  • price range: Price level
  • cuisine type: Business category
  • amenity tags: Features like Wi-Fi
  • review snippet: Short review text
  • service options: Service indicators (e.g., "Order online")
⚠️ Error Handling & Retry

If an error occurs during script execution (e.g., network fluctuations or task failure), the Agent should follow this logic:

  1. Check Output Content:
  2. 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.
  3. 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.
  1. Retry Limit:
  2. 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
  1. Local Business Discovery: Find all "Italian restaurants" in Manhattan.
  2. Sales Lead Generation: Extract a list of "real estate agencies" in London for prospecting.
  3. Competitor Mapping: Locate all "Starbucks" branches in a specific city to map competition.
  4. Market Research: Analyze "boutique hotels" in Paris, including their ratings and price ranges.
  5. Contact Collection: Gather addresses and names of "dental clinics" in Sydney.
  6. Service Search: Find "24-hour pharmacies" or "emergency plumbers" in a certain area.
  7. Neighborhood Monitoring: Track new "gyms" or "yoga studios" opening in a community.
  8. Structured Data Export: Export structured data of "car dealerships" for CRM integration.
  9. Sentiment Analysis Prep: Get review snippets and ratings for "popular tourist attractions".
  10. Global Search Localization: Use different language and country settings to research "tech hubs" globally.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。