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.
- Node.js (v14 or above)
β€ Download and install from https://nodejs.org
git clone https://github.com/Faheem798/Google-Map-Scraper.git
cd Google-Map-ScraperRun the following command to install required packages:
npm install puppeteer-extra puppeteer-extra-plugin-stealth xlsxRun the script using Node.js:
node scraper.jsYou 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:
- Launch Google Maps in a browser
- Search and scroll like a human
- Visit each business page to extract:
- Name
- Category
- Rating
- Phone
- Website
- Address
π Scraped data will be saved in the /Output folder as:
businesses_<timestamp>.csvbusinesses_<timestamp>.xlsx
Google-Map-Scraper/
βββ scraper.js # Main script
βββ Output/ # Saved results
βββ README.md # This file
βββ package.json # Dependencies
Feel free to fork this repo, suggest improvements, or open pull requests. Bug fixes, better selectors, and UX improvements are always welcome!
- 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.