Menu

Rank Local Business Leads in Python: A Simple Demand Score From Review Counts
📰

Rank Local Business Leads in Python: A Simple Demand Score From Review Counts

DEV Community: datascience·MantisAI·11 days ago
#7oBnE61W
#devtodatascience#science#devto#dev#reviews
Reading 0:00
15s threshold

If you scrape or export local business listings (from Google Maps, a directory, or your own CRM), you quickly end up with hundreds of rows and no idea where to start. This tutorial builds a small, transparent scoring function in Python that ranks businesses by likely demand and flags the ones with no website, so the top of your list is where the easy conversations are.

No external services are needed. Everything below runs on the standard library plus csv .

The input

Assume a CSV with one row per business:

name,category,city,reviews,rating,website Amit's Gym,gym,Kolkata,847,4.7, SAS FITNESS,gym,Kolkata,1403,4.6, Kross9 Gym Kasba,gym,Kolkata,551,4.8, Big Chain Fitness,gym,Kolkata,2300,4.2,https://example.com Corner Studio,gym,Kolkata,12,5.0,

Enter fullscreen mode

Exit fullscreen mode

website is empty when the listing has no site.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.