Gov Permit Scraper — Public Records to Sales Pipeline
Turn government permit databases into enriched B2B lead lists with automated outreach.
Pipeline Overview
- 1. Scrape — Pull new permits from state/county databases
- Filter — Remove irrelevant permits (distributors, manufacturers, renewals)
- Enrich — Find business emails via Brave Search + contact page scraping
- Store — Append to Google Sheets or CSV with deduplication
- Email — Send personalized outreach via Resend/SMTP
- Drip — Follow up at day 3 and day 7
Supported Data Sources
Texas (TABC — Liquor Licenses)
- - Source: INLINECODE0
- Data: Business name, permit type, address, county, issue date
- Best for: Insurance agents, POS vendors, food service suppliers
Adaptable to Any State
The scraper pattern works for any government permit database:
- - Contractor licenses
- Restaurant health permits
- Real estate licenses
- Professional licenses (medical, legal, etc.)
- Business registrations (Secretary of State)
Requirements
- - Brave Search API key — for email enrichment
- Resend API key (or SMTP) — for outreach emails
- Google Sheets OAuth (optional) — for lead tracking
Quick Start
CODEBLOCK0
Configuration
Edit scripts/config.json:
- -
source: Which permit database to scrape - INLINECODE3 : Permit types to exclude
- INLINECODE4 : brave | deepcrawl | direct
- INLINECODE5 : Customizable pitch template
- INLINECODE6 : Google Sheets ID for lead tracking
- INLINECODE7 : Sender email address
Scripts
- -
scripts/permit-pipeline.js — Main scrape → enrich → email pipeline - INLINECODE9 — Pipeline configuration
Email Strategy
Initial Outreach (Day 0)
Congratulate on new license, offer relevant service. Keep under 100 words.
Follow-up (Day 3)
Quick bump with one additional value point.
Break-up (Day 7)
Last touch, include social proof or case study link.
References
- - See
references/data-sources.md for government database URLs by state - See
references/compliance.md for CAN-SPAM and cold email legal guidelines
Gov Permit Scraper — 从公共记录到销售管道
将政府许可证数据库转化为丰富的B2B潜在客户列表,并实现自动化外联。
管道概览
- 1. 抓取 — 从州/县数据库中提取新许可证
- 筛选 — 移除无关许可证(分销商、制造商、续期)
- 丰富 — 通过Brave搜索+联系页面抓取查找企业邮箱
- 存储 — 追加至Google Sheets或CSV,并去重
- 邮件 — 通过Resend/SMTP发送个性化外联邮件
- 跟进 — 第3天和第7天进行跟进
支持的数据源
德克萨斯州(TABC — 酒类许可证)
- - 来源:https://www.tabc.texas.gov/public-information/new-permits-issued/
- 数据:企业名称、许可证类型、地址、县、签发日期
- 最佳适用:保险代理人、POS供应商、食品服务供应商
适用于任何州
该抓取模式适用于任何政府许可证数据库:
- - 承包商许可证
- 餐厅卫生许可证
- 房地产许可证
- 专业许可证(医疗、法律等)
- 企业注册(州务卿)
要求
- - Brave搜索API密钥 — 用于邮箱丰富
- Resend API密钥(或SMTP) — 用于外联邮件
- Google Sheets OAuth(可选) — 用于潜在客户追踪
快速开始
bash
设置环境变量
export BRAVE
APIKEY=your_key
export RESEND
APIKEY=your_key
运行TABC管道
node scripts/permit-pipeline.js --source tabc --since 2026-03-01
试运行(不发送邮件)
node scripts/permit-pipeline.js --source tabc --since 2026-03-01 --dry-run
配置
编辑scripts/config.json:
- - source:要抓取的许可证数据库
- filterKeywords:要排除的许可证类型
- enrichmentMethod:brave | deepcrawl | direct
- emailTemplate:可自定义的推销模板
- sheetId:用于潜在客户追踪的Google Sheets ID
- fromEmail:发件人邮箱地址
脚本
- - scripts/permit-pipeline.js — 主要抓取→丰富→邮件管道
- scripts/config.json — 管道配置
邮件策略
初次外联(第0天)
祝贺新许可证获批,提供相关服务。控制在100字以内。
跟进(第3天)
快速提醒,增加一个额外价值点。
结束(第7天)
最后一次联系,包含社交证明或案例研究链接。
参考资料
- - 参见references/data-sources.md获取各州政府数据库URL
- 参见references/compliance.md了解CAN-SPAM和冷邮件法律指南