Communitygithub.com

aiagentwithdhruv/skills

Google マップからB2Bリードをスクレイピングし、Webサイトの詳細なエンリッチメントと連絡先抽出を行います。ユーザーが地元のビジネスを探す、Google マップをスクレイピングする、業者リストを生成する、地域サービスビジネスのデータベースを構築するよう依頼した場合に使用します。

skills とは?

このスキルは、Google マップから高品質なB2Bリードを自動的に生成するためのものです。主に、指定された検索クエリに基づいてGoogle マップ上のビジネス情報をスクレイピングし、各ビジネスのWebサイトを訪問して詳細な連絡先情報(メールアドレス、電話番号、ソーシャルメディアアカウント、経営者情報など)を抽出します。Apifyのクローラー、Webスクレイピング、DuckDuckGoでの検索エンリッチメント、Claude 3.5 Haikuによる構造化データ抽出を組み合わせ、最終的にGoogleスプレッドシートに最大36フィールドのリードデータを保存します。主にClaude Codeや類似のAIエージェント環境で動作し、B2B営業チームや地元サービス事業者向けデータベースの構築に役立ちます。1リードあたりのコストは約0.012~0.022ドルと低コストで、並列処理による高速なバッチ処理が可能です。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aiagentwithdhruv/skills/tree/HEAD/gmaps-leads

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Google マップ リード生成

目標

Google マップから高品質なB2Bリードを生成し、WebサイトをスクレイピングしてClaudeで構造化された連絡先データを抽出することで、詳細な連絡先エンリッチメントを実現します。

入力

パラメータ必須説明
--searchはい検索クエリ(例:「東京都渋谷区 の配管工」)
--limitいいえ最大結果数(デフォルト:10)
--sheet-urlいいえ追加先の既存スプレッドシートURL
--workersいいえ並列ワーカー数(デフォルト:3)

スクリプト

  • ./scripts/gmaps_lead_pipeline.py - メインオーケストレーション
  • ./scripts/gmaps_parallel_pipeline.py - 並列バージョン
  • ./scripts/scrape_google_maps.py - Google マップスクレイパー
  • ./scripts/extract_website_contacts.py - Webサイト連絡先抽出
  • ./scripts/update_sheet.py - Googleスプレッドシート同期

処理手順

基本的な使い方

# 10件のリードで新しいスプレッドシートを作成
python3 ./scripts/gmaps_lead_pipeline.py --search "東京都渋谷区 の配管工" --limit 10

# 既存のスプレッドシートに追加(データベース構築に推奨)
python3 ./scripts/gmaps_lead_pipeline.py --search "大阪市 の歯医者" --limit 25 \
  --sheet-url "https://docs.google.com/spreadsheets/d/..."

# 大量のデータを処理
python3 ./scripts/gmaps_lead_pipeline.py --search "名古屋市 の屋根修理業者" \
  --limit 50 --workers 5

パイプラインのステップ

  1. Google マップスクレイピング - Apify compass/crawler-google-places がリストを返す
  2. Webサイトスクレイピング - メインページ + 最大5ページの問い合わせページを取得
  3. Web検索エンリッチメント - DuckDuckGo検索で経営者の連絡先情報を探す
  4. Claude抽出 - Claude 3.5 Haiku が構造化された連絡先を抽出
  5. Googleスプレッドシート同期 - 新しいリードを追加し、lead_idで重複排除

出力スキーマ(36フィールド)

ビジネス基本情報: business_name, category, address, city, state, zip_code, phone, website, rating, review_count

抽出された連絡先: emails, additional_phones, business_hours

ソーシャルメディア: facebook, twitter, linkedin, instagram, youtube, tiktok

経営者情報: owner_name, owner_title, owner_email, owner_phone, owner_linkedin

チーム連絡先: チームメンバーのJSON配列

メタデータ: lead_id, scraped_at, search_query, pages_scraped, enrichment_status

コスト

コンポーネント1リードあたり
Apify Google Maps約$0.01-0.02
Claude Haiku約$0.002
DuckDuckGo/HTTP無料
合計約$0.012-0.022

100リードの場合:合計約$1.50-2.50

トラブルシューティング

  • 「ビジネスが見つかりません」:クエリに場所を含めてください
  • 403 Forbidden:約10-15%のサイトがスクレイパーをブロックします(正常に処理されます)
  • 認証問題:token.json を削除して再認証してください
  • 重複:lead_id(名前|住所のMD5)を使用して重複排除します

環境設定

APIFY_API_TOKEN=your_token
ANTHROPIC_API_KEY=your_key

スキーマ

入力

名前型必須説明
searchstringはい検索クエリ(例:「東京都渋谷区 の配管工」)
limitintegerいいえ最大結果数(デフォルト:10)
sheet_urlstringいいえ追加先の既存スプレッドシートURL
workersintegerいいえ並列ワーカー数(デフォルト:3)

出力

名前型説明
sheet_urlstring36フィールドのリードデータを含むGoogleスプレッドシートのURL
lead_countintegerスクレイピングされたリード数

認証情報

名前ソース
APIFY_API_TOKEN.env
ANTHROPIC_API_KEY.env

組み合わせ可能なスキル

このスキルと連鎖して使用できるスキル:classify-leads, casualize-names, instantly-campaigns, onboarding-kickoff

コスト

1リードあたり$0.012-0.022

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

aiagentwithdhruv/skills

Add new Modal webhooks for event-driven execution. Use when user asks to create a webhook, add an endpoint, or set up event triggers.

aiagentwithdhruv/skills

Answer Euron Gen AI Bootcamp doubts instantly. Covers Euri API setup across all frameworks (Python, LangChain, OpenAI SDK, TypeScript, n8n, curl), MCP server setup, common errors, model recommendations, and token limits. Use when someone in the bootcamp asks a question.

aiagentwithdhruv/skills

Manage emails across multiple Gmail accounts with unified tooling. Use when user asks to check email, read inbox, label emails, archive messages, or manage Gmail across accounts.

aiagentwithdhruv/skills

Auto-label Gmail emails into Action Required, Waiting On, and Reference categories. Use when user asks to label emails, triage inbox, categorize emails, or organize Gmail.

aiagentwithdhruv/skills

Run Claude orchestrator locally with Cloudflare tunneling. Use when user asks to run locally, start local server, or test webhooks locally.

aiagentwithdhruv/skills

MCP server for AI-powered macOS control — apps, display, audio, files, screenshots, clipboard

aiagentwithdhruv/skills

Deploy execution scripts to Modal cloud. Use when user asks to deploy to Modal, push code to cloud, or update Modal functions.

aiagentwithdhruv/skills

Scrape and verify business leads using Apify, classify with LLM, enrich emails, and save to Google Sheets. Use when user asks to find leads, scrape businesses, generate prospect lists, or build lead databases for any industry or location.

aiagentwithdhruv/skills

Query Skool community content using RAG pipeline with vector search. Use when user asks to search Skool knowledge, find community answers, or query Skool content.

aiagentwithdhruv/skills

Scrape Upwork jobs and generate personalized proposals with cover letters. Use when user asks to find Upwork jobs, create Upwork proposals, or apply to Upwork listings.

関連スキル