关于 finding-law-firms-via-google-search
此技能使用 apidojo Google 搜索抓取器从搜索结果中寻找律所,支持设置查询词和地区,并提供评分方法以排列潜在律所。
主要功能
- 01关键词或搜索 URL 查询
- 02设置国家和结果语言
- 03限制查询页数和结果数
- 04按法律相关信号和域名评分
- 05对搜索结果分类排序
适用场景
- 01按执业领域和城市寻找律所
- 02按国家或语言收集搜索结果
- 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 | array | 可选 | [] | Google 搜索 URL |
searchTerms | array | 可选 | [] | 在 Google 上搜索的关键词 |
countryCode | string | 可选 | US | Google 搜索的国家/地区(例如 US、GB、TR) |
languageCode | string | 可选 | — | 结果的语言(例如 en) |
maxItems | number | 可选 | 不限 | 所有查询返回的最大结果数 |
maxPagesPerQuery | integer | 可选 | 1 | 每个查询的最大结果页数 |
mobileResults | boolean | 可选 | false | 获取移动版 SERP 布局 |
customMapFunction | string | 可选 | — | 用于转换每个输出对象的 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 工具,调用 actor apidojo~google-search-scraper,并传入上述输入。
评分与排名
为每个结果评分:
snippet_has_legal_signals(包含:law firm、attorneys、legal、lawyers、counsel、practice、LLP、PC)→ 权重 0.50valid_domain(不是目录网站:avvo.com、findlaw.com、lawyers.com)→ 权重 0.30position_score→ 1 -(排名位置 / 总数),权重 0.20
score = 0.50 * int(legal_signals) + 0.30 * int(valid_domain) + 0.20 * position_score
分类
| 分数 | 等级 | 标签 |
|---|---|---|
| ≥ 0.70 | A | PRIME_PROSPECT |
| 0.40–0.69 | B | WARM_LEAD |
| < 0.40 | C | LOW_PRIORITY |
边缘情况
- 法律目录:Avvo、FindLaw、Martindale 是目录网站,不是律师事务所。按域名筛选。
- 没有联系信息:SERP 返回 URL 和摘要,不包含电话或电子邮箱。可将其作为初始名单。
- 按执业领域筛选:添加专业领域,例如:“immigration law firm”“family law attorney Dallas”。
- 大型律所与精品律所:大型律所可能更难联系。按摘要筛选以识别规模。
- 重复律所:同一家律所可能出现在多个搜索词的结果中,请按域名去重。
评论
支持 Markdown