---
title: "Discussion on \"Build a Local-Business Lead List with the Google Maps Scraper API in Python\" | Hashnode"
description: "Discussion on \"Build a Local-Business Lead List with the Google Maps Scraper API in Python\". Search by keyword and area, keep distinct businesses, and save a CSV with optional recent reviews."
url: "https://hashnode.com/posts/build-a-local-business-lead-list-with-the-google-maps-scraper-api-in-python/6ada13e8c4b36ca6c40ca8fd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build a Local-Business Lead List with the Google Maps Scraper API in Python](https://jimmiller-gmaps.hashnode.dev/build-a-local-business-lead-list-with-the-google-maps-scraper-api-in-python?utm_source=hashnode&utm_medium=feed)

Search by keyword and area, keep distinct businesses, and save a CSV with optional recent reviews.

Oct 22 · 9 min read · jimmiller-gmaps.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#api](https://hashnode.com/tag/api)
-   [#web-scraping](https://hashnode.com/tag/web-scraping)
-   [#lead-generation](https://hashnode.com/tag/lead-generation)
-   [#automation](https://hashnode.com/tag/automation)

## Written by

[Jim Miller](https://hashnode.com/@jimmiller-gmaps)

@jimmiller-gmaps

  
[View profile](https://hashnode.com/@jimmiller-gmaps)

Growth, GMapsScraper.AI

Growth, GMapsScraper.AI — https://gmapsscraper.ai

## Responses 1

Markdown supported · ⌘↵ to post

[OnlineProxy](https://hashnode.com/@onlineproxyio)

[Oct 24](https://hashnode.com/posts/build-a-local-business-lead-list-with-the-google-maps-scraper-api-in-python/6ada13e8c4b36ca6c40ca8fd/comment/6adcbc735fa88e7d6d85bded)

the retry helper doesn’t read Retry-After so all 5 attempts finish in about 15-19 sec. if the rate limit resets later than that, the run still fails.

rows keyed by Place Id and rows keyed only by Cid for the same business wont merge, because the field name is part of the key. missing data or next keys would crash the script, so .get() with defaults is a simple fix
