A simple Python script that scrapes venue names from Google Maps search results. Built with Playwright for web automation. Turns Maps query to .json
- 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
- 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
- Python 3.7+
- Playwright
- Clone the repository
- Install dependencies:
pip install playwright - Run the script:
python main.py
- Enter your search terms when prompted.
- Enter the maximum number of results you want to scrape.
- The script will save the results to
venues.json.