Skip to content

A fast and powerful Puppeteer-based tool to extract business details from Google Maps! πŸ“βœ¨ It grabs names, addresses, phones, websites, categories. πŸ“Š Export results in CSV & XLSX. πŸ”₯ Easy to use, fully automated, and super efficient! πŸ› οΈβœ…

Notifications You must be signed in to change notification settings

Faheem798/Google-Map-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


πŸ—ΊοΈ Google Maps Business Scraper

License: MIT Node.js CI

Google Maps Business Scraper is a simple yet powerful tool built with Puppeteer and stealth plugins to extract businesses from Google Maps. You can get business name, category, rating, phone, website, and address, then export the data as CSV or Excel.


πŸš€ Installation (Beginners Friendly)

1. πŸ“¦ Requirements

2. πŸ“ Clone the Repository

git clone https://github.com/Faheem798/Google-Map-Scraper.git
cd Google-Map-Scraper

3. πŸ”¨ Install Dependencies

Run the following command to install required packages:

npm install puppeteer-extra puppeteer-extra-plugin-stealth xlsx

πŸ§‘β€πŸ’» How to Use

Run the script using Node.js:

node scraper.js

You will be asked to:

  • Enter business type (e.g. restaurants, gyms)
  • Enter region (e.g. New York, Lahore)
  • How many businesses to scrape (0 = all)
  • Headless mode (yes = invisible browser)
  • Export format: CSV, Excel, or Both

🟒 After confirmation, the scraper will:

  1. Launch Google Maps in a browser
  2. Search and scroll like a human
  3. Visit each business page to extract:
    • Name
    • Category
    • Rating
    • Phone
    • Website
    • Address

πŸ“ Scraped data will be saved in the /Output folder as:

  • businesses_<timestamp>.csv
  • businesses_<timestamp>.xlsx

πŸ“‚ Folder Structure

Google-Map-Scraper/
β”œβ”€β”€ scraper.js         # Main script
β”œβ”€β”€ Output/            # Saved results
β”œβ”€β”€ README.md          # This file
└── package.json       # Dependencies

πŸ™Œ Contributing

Feel free to fork this repo, suggest improvements, or open pull requests. Bug fixes, better selectors, and UX improvements are always welcome!


πŸ™ Credits

  • Inspired by advanced web scraping techniques using Puppeteer‑extra and stealth enhancements.
  • Special thanks to the open-source community for providing excellent tools and libraries.

About

A fast and powerful Puppeteer-based tool to extract business details from Google Maps! πŸ“βœ¨ It grabs names, addresses, phones, websites, categories. πŸ“Š Export results in CSV & XLSX. πŸ”₯ Easy to use, fully automated, and super efficient! πŸ› οΈβœ…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •