Scraping Google Maps Place Data with NodeJS
This is a step-by-step guide on scraping Google maps place data with NodeJS. What would be extracted? Preparation Initially, we have to make a project in Node.js* and add npm packages , puppeteer-extra, puppeteer and puppeteer-extra-plugin-stealth for controlling Chromium (or Firefox, or Chrome but now we can only work with Chromium that is utilized by default) with a DevTools Protocol in both headless and non-headless modes. To do that, in a directory with a project, open a command line to enter npm i puppeteer puppeteer-extra puppeteer-extra-plugin-stealth and npm init -y. Note: In addition, you can utilize puppeteer with no extensions, but we strongly suggest to use that with puppeteer-extra-plugin-stealth and puppeteer-extra to prevent site detection that you are using a headless Chromium or a web driver. You could check that on a Chrome headless test site. The screenshot given here shows the difference. Procedure Chrome extension SelectorGadget was used for grabb...