Skip to content
Marko Ivanovski

Lead generator

A Python scraper that walks Google Maps by location and keyword to build sales lead lists.

category
academic
year
2024
status
completed
role
Sole developer
  • PostgreSQL
  • Python
  • Selenium

What it is

My first web scraper. A Python script drives Chrome through Selenium, searches Google Maps for a keyword in a location, scrolls the results feed until it stops growing, and saves each business's name, phone, website and address to Postgres, skipping any it already has.

It was a course exercise and the scraping was for learning only. The tool was never used in production.

  • Collects business listings by location and keyword, driven through Selenium.
  • Written as a course exercise. The scraping was for educational purposes and the tool was never put to production use.

What I learnt

  1. My first time scraping a website. I learned how each block of a page's HTML is built, and how to find the fields I needed inside it.
  2. Every lead went straight into a database rather than a file, which is what made skipping duplicates possible.

What I would do next

A better scraper, though I don't plan to build it.