finding-law-firms-via-google-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFinding Law Firms Via Google Search
通过谷歌搜索查找律师事务所
Inputs
输入参数
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| array | Optional | | Google search URLs |
| array | Optional | | Keywords to search on Google |
| string | Optional | | Country for Google search (e.g. |
| string | Optional | — | Language for results (e.g. |
| number | Optional | Unlimited | Maximum results to return across all queries |
| integer | Optional | | Maximum result pages per query |
| boolean | Optional | | Fetch mobile SERP layout |
| string | Optional | — | JavaScript function to transform each output object |
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| 数组 | 可选 | | 谷歌搜索URL |
| 数组 | 可选 | | 谷歌搜索关键词 |
| 字符串 | 可选 | | 谷歌搜索的国家代码(例如 |
| 字符串 | 可选 | — | 结果的语言代码(例如 |
| 数字 | 可选 | 无限制 | 所有查询返回的最大结果数 |
| 整数 | 可选 | | 每个查询的最大结果页数 |
| 布尔值 | 可选 | | 获取移动端SERP布局 |
| 字符串 | 可选 | — | 用于转换每个输出对象的JavaScript函数 |
How to Run
运行方式
Using run_actor.js (recommended)
使用run_actor.js(推荐)
bash
undefinedbash
undefinedQuick answer (table)
Quick answer (table)
node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["personal injury law firm Dallas"], "countryCode": "US", "maxPagesPerQuery": 3}'
node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["personal injury law firm Dallas"], "countryCode": "US", "maxPagesPerQuery": 3}'
Save as CSV
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
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
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
undefinednode 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
undefinedREST API fallback
备选REST API方式
bash
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}'If Apify MCP is available:
Use the Apify MCP tool with actor and the input above.
call_actorapidojo~google-search-scraperbash
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的工具,指定actor为并传入上述输入参数。
call_actorapidojo~google-search-scraperScoring & Ranking
评分与排名
Score each result by:
- (contains: law firm, attorneys, legal, lawyers, counsel, practice, LLP, PC) → weight 0.50
snippet_has_legal_signals - (not directory sites: avvo.com, findlaw.com, lawyers.com) → weight 0.30
valid_domain - → 1 - (position / total), weight 0.20
position_score
python
score = 0.50 * int(legal_signals) + 0.30 * int(valid_domain) + 0.20 * position_score每条结果按以下维度评分:
- (包含以下关键词:law firm、attorneys、legal、lawyers、counsel、practice、LLP、PC)→ 权重0.50
snippet_has_legal_signals - (非目录网站:avvo.com、findlaw.com、lawyers.com)→ 权重0.30
valid_domain - → 1 - (position / total),权重0.20
position_score
python
score = 0.50 * int(legal_signals) + 0.30 * int(valid_domain) + 0.20 * position_scoreClassification
分类
| Score | Tier | Label |
|---|---|---|
| ≥ 0.70 | A | PRIME_PROSPECT |
| 0.40–0.69 | B | WARM_LEAD |
| < 0.40 | C | LOW_PRIORITY |
| 分数 | 等级 | 标签 |
|---|---|---|
| ≥ 0.70 | A | PRIME_PROSPECT |
| 0.40–0.69 | B | WARM_LEAD |
| < 0.40 | C | LOW_PRIORITY |
Edge Cases
边缘情况
- Legal directories: Avvo, FindLaw, Martindale are directories — not law firms. Filter by domain.
- No contact data: SERP returns URL and snippet — no phone/email. Use as starting list.
- Practice area filter: Add specialty: "immigration law firm", "family law attorney Dallas".
- Large vs boutique: Big firms may be harder to reach. Filter by snippet to identify size.
- Duplicate firms: Same firm may appear across multiple search terms — deduplicate by domain.
- 法律目录网站:Avvo、FindLaw、Martindale属于目录网站,并非律师事务所。需通过域名过滤。
- 无联系数据:搜索结果仅返回URL和摘要,无电话/邮箱。可将其作为初始名单使用。
- 执业领域过滤:添加专业关键词,例如“immigration law firm”、“family law attorney Dallas”。
- 大型律所vs精品律所:大型律所可能更难触达。可通过摘要过滤识别律所规模。
- 重复律所:同一律所可能出现在多个搜索关键词的结果中,需通过域名去重。