mcpField
F
finding-law-firms-via-google-search

finding-law-firms-via-google-search

github.com/apidojo-ioマーケティング・グロース1793 回インストール24 週間前に更新
リポジトリ

finding-law-firms-via-google-search について

apidojo の Google 検索スクレーパーを使い、検索結果から法律事務所を見つけるスキルです。検索語や地域を指定でき、候補事務所を採点して順位付けする方法も示します。

主な機能

  1. 01キーワードや検索 URL による検索
  2. 02国と検索言語の指定
  3. 03クエリごとのページ数と結果数の制限
  4. 04法律関連の語句やドメインによる採点
  5. 05検索結果の分類と順位付け

活用シーン

  1. 01分野や都市を指定した法律事務所の検索
  2. 02国や言語別の検索結果の収集
  3. 03検索結果から法律事務所の候補リストを作成

MCP 対応

Apify MCP の call_actor ツールから apidojo~google-search-scraper を呼び出せます。

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/apidojo-io/apidojo-skills --skill finding-law-firms-via-google-search

インストール後、Claude Code で/finding-law-firms-via-google-searchを入力して読み込まれたか確認します。

詳細

Google 検索で法律事務所を見つける


入力

パラメーター型必須デフォルト備考
startUrls配列任意[]Google 検索 URL
searchTerms配列任意[]Google で検索するキーワード
countryCode文字列任意USGoogle 検索の国(例:US、GB、TR)
languageCode文字列任意—検索結果の言語(例:en)
maxItems数値任意無制限すべてのクエリで返す結果の最大数
maxPagesPerQuery整数任意1クエリごとの結果ページの最大数
mobileResults真偽値任意falseモバイル向け SERP レイアウトを取得
customMapFunction文字列任意—各出力オブジェクトを変換する JavaScript 関数

実行方法

run_actor.js を使用(推奨)
# Quick answer (table)
node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["personal injury law firm Dallas"], "countryCode": "US", "maxPagesPerQuery": 3}'

# Save as CSV
node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["personal injury law firm Dallas"], "countryCode": "US", "maxPagesPerQuery": 3}' --output results.csv --format csv

# Save as JSON
node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["personal injury law firm Dallas"], "countryCode": "US", "maxPagesPerQuery": 3}' --output results.json --format json
REST API の代替手段
curl -X POST "https://api.apify.com/v2/acts/apidojo~google-search-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["personal injury law firm Dallas"], "countryCode": "US", "maxPagesPerQuery": 3}'

Apify MCP が利用可能な場合: Apify MCP の call_actor ツールで、アクター apidojo~google-search-scraper と上記の入力を使用してください。


スコアリングとランキング

各結果を次の基準でスコアリングします:

  • snippet_has_legal_signals(law firm、attorneys、legal、lawyers、counsel、practice、LLP、PC を含む)→ 重み 0.50
  • valid_domain(ディレクトリーサイトではない:avvo.com、findlaw.com、lawyers.com)→ 重み 0.30
  • position_score → 1 - (position / total)、重み 0.20
score = 0.50 * int(legal_signals) + 0.30 * int(valid_domain) + 0.20 * position_score

分類

スコアティアラベル
≥ 0.70APRIME_PROSPECT
0.40–0.69BWARM_LEAD
< 0.40CLOW_PRIORITY

エッジケース

  • 法律関連ディレクトリー:Avvo、FindLaw、Martindale はディレクトリーであり、法律事務所ではありません。ドメインでフィルタリングしてください。
  • 連絡先情報がない場合:SERP から取得できるのは URL とスニペットで、電話番号やメールアドレスはありません。出発点として利用してください。
  • 取扱分野によるフィルター:専門分野を追加します:「immigration law firm」「family law attorney Dallas」。
  • 大手とブティック:大手事務所には連絡が取りにくい場合があります。スニペットで絞り込み、規模を特定してください。
  • 重複する事務所:同じ事務所が複数の検索語で表示されることがあります。ドメインで重複を除去してください。

コメント