SeptiawanAjiP / google-maps-scrapping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Maps Scraper

Prerequisites

Ensure you have the following dependencies installed before running the script:

Installation

  1. Clone this repository:

    git clone https://github.com/SeptiawanAjiP/google-maps-scrapping.git
    cd your-repo
  2. Install the required npm packages:

    npm install

Usage

  1. Open the index.js file and update the query variable with your desired search query:

    const query = "Laundry di Jakarta";
  2. Run the script:

    node index.js

    The script will launch a headless browser, perform the Google Maps search, and scrape relevant business information.

  3. The scraped data will be saved in a CSV file named places.csv in the project directory.

Acknowledgments

This script is based on @adrianhorning08. Special thanks for providing the initial code.

About


Languages

Language:JavaScript 100.0%