All projects

Independent open-source project

LeadMiner

A hand-coded Python CLI for filtering Google Places results, storing leads and exporting them to CSV.

My role
Independent implementation and package release
Development
Hand-coded
Tools
Python, Typer, Rich, SQLite

Why I built it

I’d spent plenty of time looking through Google Maps for businesses that might need a website. When I wanted to build a small open-source project by hand, I picked a part of that process I knew well. I wanted to type what I was looking for and get a list I could work through.

Finding businesses from the terminal

LeadMiner takes a business type and location and searches Google Places. I added filters for whether the listing has a website, its rating and its number of reviews. For example, I can look for plumbers in Tonbridge with at least ten reviews and no website listed. The results show names, addresses and phone numbers alongside ratings and review counts.

leadminer search plumber tonbridge --website n --min-reviews 10
Loading video…
A filtered search and CSV export with sample businesses.

Saving results to come back to

I added named campaigns so I could keep searches for different industries or locations organised. Once a campaign is selected, matching businesses are saved to a local SQLite database and can be listed again without making another search. If I wanted to open the results in a spreadsheet, I could run the search with --output-format csv.

Releasing it

I hand-coded LeadMiner in Python, used Typer for the commands and Rich for the tables, and published it as a package you can install with pipx install leadminer. The source is MIT-licensed and searches use your own Google Places API key. LeadMiner on PyPI.