Skip to content

EndlessHoper/MapScrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps Venue Scraper

A simple Python script that scrapes venue names from Google Maps search results. Built with Playwright for web automation. Turns Maps query to .json

Features

  • Search for any location/venue type on Google Maps
  • Customizable number of results
  • Human-like scrolling and mouse movements
  • Automatic cookie handling
  • Results saved to JSON file

Note

  • This runs in headful mode, so you can see the browser open and close.
  • The approach is quite basic, just for me to use for personal projects
  • May break when Google changes their website structure

Requirements

  • Python 3.7+
  • Playwright

Installation

  1. Clone the repository
  2. Install dependencies: pip install playwright
  3. Run the script: python main.py

Usage

  1. Enter your search terms when prompted.
  2. Enter the maximum number of results you want to scrape.
  3. The script will save the results to venues.json.

About

A simple Python script that scrapes venue names from Google Maps search results

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages