osint-lead-identificationPortfolio

Preview

OSINT: Business Lead Identification

A Python workflow that turns public property records into an organized and indexable list of business leads.

LinkedIn: carlservice Contact: dot.card GitHub: cservicode

demo

The Python tool collects public property records through ArcGIS REST and Socrata, checks incoming data before it is used, standardizes owner names, and groups business-owned properties into portfolios. Across approximately 486,000 properties in 10 cities, it narrows approximately 414,000 owners to roughly 23,500 business and conglomerate portfolios for review.

How it works

Flowchart: Public property records; Check incoming data; Classify owners into 9 tiers; Group properties by owner; Research shortlisted businesses; Search and review portfolios
  • Each incoming feed is checked before it replaces earlier data. A failed or empty pull keeps the last good copy in place and reports how to resume.
  • Owner names pass through nine ordered categories; first match wins. The rules require a real business signal instead of treating an ampersand alone as a company name, and keep trusts in a review list rather than dropping them.
  • Spelling variants such as "HOLDINGS, L.L.C." and "HOLDINGS LLC" are grouped together. Duplicate city/parcel IDs are removed, and each portfolio shows property count, cities, and assessed value.
  • For shortlisted companies, I review state business filings for entity and officer details, keeping the result connected to its public source.
  • The dashboard runs only on the local machine, validates request origins, and requires a CSRF token before accepting changes to block cross-site writes.

Selected code

FileWhat it shows
leads/classify.pyOrdered owner rules and the distinction between couple names and small businesses.
leads/portfolio.pyGroups spelling variants, removes duplicate city/parcel IDs, calculates totals, and keeps trusts in a review list.
leads/local_server.pyLoopback binding, Host and Origin validation, CSRF-protected writes, no CORS, and strict CSP.
leads/feed_guard.pyMinimum-row validation and temporary-file replacement that preserves the last good cache.
tests/58 offline tests: tiering edge cases, portfolio totals, feed failures, and attacks on the local server.
tools/make_demo_corpus.pyBuilds the demo data set with the same classifier and portfolio code.
Source
md41 lines2.9 KB
Raw
1<h1 align="center">OSINT: Business Lead Identification</h1>
2
3<p align="center">A Python workflow that turns public property records into an organized and indexable list of business leads.</p>
4
5<p align="center">
6 <a href="https://www.linkedin.com/in/carlservice"><img src="docs/badges/linkedin.svg" alt="LinkedIn: carlservice" height="20"></a>
7 <a href="https://dot.cards/carlservice99"><img src="docs/badges/contact.svg" alt="Contact: dot.card" height="20"></a>
8 <a href="https://github.com/cservicode"><img src="docs/badges/github.svg" alt="GitHub: cservicode" height="20"></a>
9</p>
10
11![demo](docs/demo.gif)
12
13The Python tool collects public property records through ArcGIS REST and Socrata, checks incoming data before it is used, standardizes owner names, and groups business-owned properties into portfolios. Across approximately 486,000 properties in 10 cities, it narrows approximately 414,000 owners to roughly 23,500 business and conglomerate portfolios for review.
14
15## How it works
16
17```mermaid
18flowchart TB
19 A[Public property records] --> B[Check incoming data]
20 B --> C[Classify owners into 9 tiers]
21 C --> D[Group properties by owner]
22 D --> E[Research shortlisted businesses]
23 E --> F[Search and review portfolios]
24```
25
26- Each incoming feed is checked before it replaces earlier data. A failed or empty pull keeps the last good copy in place and reports how to resume.
27- Owner names pass through nine ordered categories; first match wins. The rules require a real business signal instead of treating an ampersand alone as a company name, and keep trusts in a review list rather than dropping them.
28- Spelling variants such as "HOLDINGS, L.L.C." and "HOLDINGS LLC" are grouped together. Duplicate city/parcel IDs are removed, and each portfolio shows property count, cities, and assessed value.
29- For shortlisted companies, I review state business filings for entity and officer details, keeping the result connected to its public source.
30- The dashboard runs only on the local machine, validates request origins, and requires a CSRF token before accepting changes to block cross-site writes.
31
32## Selected code
33
34| File | What it shows |
35|---|---|
36| [leads/classify.py](leads/classify.py) | Ordered owner rules and the distinction between couple names and small businesses. |
37| [leads/portfolio.py](leads/portfolio.py) | Groups spelling variants, removes duplicate city/parcel IDs, calculates totals, and keeps trusts in a review list. |
38| [leads/local_server.py](leads/local_server.py) | Loopback binding, Host and Origin validation, CSRF-protected writes, no CORS, and strict CSP. |
39| [leads/feed_guard.py](leads/feed_guard.py) | Minimum-row validation and temporary-file replacement that preserves the last good cache. |
40| [tests/](tests/) | 58 offline tests: tiering edge cases, portfolio totals, feed failures, and attacks on the local server. |
41| [tools/make_demo_corpus.py](tools/make_demo_corpus.py) | Builds the demo data set with the same classifier and portfolio code. |