← back to Bankrupt Leads

README.md

39 lines

# bankrupt-leads

MVP: scrape bankruptcy court filings, extract asset schedules + 363 sale motions, resell as vertical lead digests.

## Pipeline (local-LLM only — no cloud APIs)
1. **Poll** CourtListener RECAP (free) + PACER RSS for new Ch. 7/11/Subchapter V cases
2. **Classify** docs with Ollama `gemma3:4b`: Schedule A/B, 363 motion, auctioneer retention, APA, abandonment
3. **Extract** assets with Ollama `qwen3:14b` (JSON mode) → Postgres. Fallback `gemma3:27b` on tough filings.
4. **Enrich** trustee/auctioneer contact; cross-ref UCC-1 filings for secured creditors
5. **Digest** weekly email per vertical (start: restaurant equipment)

## Status
- [x] Scaffold (`~/Projects/bankrupt-leads/`)
- [x] Postgres schema (`src/schema.sql`)
- [x] RECAP poller (`src/poller.py`)
- [x] Local-LLM client (`src/llm.py` — Ollama)
- [x] Doc classifier (`src/classify.py` — gemma3:4b)
- [x] Asset extractor (`src/extract.py` — qwen3:14b JSON mode)
- [x] Weekly digest builder (`src/digest.py` — vertical filters: restaurant_equipment, machine_tools, medical_equipment)
- [x] Cold-email template + target-list plan (`docs/dealer_outreach.md`)
- [x] Registered in CNCP `cncp-projects.json`
- [ ] `createdb bankrupt_leads && psql -f src/schema.sql` on Local
- [ ] CourtListener token + first poll run
- [ ] Seed 50 dealers into `docs/dealers.csv`

## First vertical: restaurant equipment
Rationale: frequent Ch. 7 filings, active resale market (Silver State, RestaurantEquipment.net, local dealers), dealers already cold-call trustees — so proving value is just "we found it first."

## Cost envelope (month 1)
- PACER: ~$200 (only for gaps RECAP misses)
- LLM: $0 (all inference on local Ollama — gemma3:4b / qwen3:14b / gemma3:27b)
- Postgres + hosting: existing Kamatera
- Target: 10 paid dealers × $149/mo = $1,490 MRR by week 8

## Non-goals (for now)
- Competing with Reorg/BankruptcyData on breadth
- General-public UI
- Real-time alerts (weekly cadence matches sale timelines)