npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

google-maps-scraper

v1.0.16

Published

**Note**: This script might break if Google changes the structure of the website. If you encounter any issues, please open an issue on the [GitHub repository](https://github.com/robert-kratz/google-maps-scraper) or create a pull request.

Downloads

35

Readme

Google Maps Scraper

Note: This script might break if Google changes the structure of the website. If you encounter any issues, please open an issue on the GitHub repository or create a pull request.

This is a pupeeter based scraper for Google Maps. This script will seach for the term you provide and scrape the information from the search results. Each search will be saved in a separate file in the current directory. Due to the limitations of the Google Maps API, this script will not work for more than 120 search results.

The output file will be a csv file with the following format:

- Name
- Business Type
- Address
- Phone
- Website
- Rating
- URL
- Scraping Date
- Website

Important: This script is for educational purposes only. Please make sure to respect the terms of service of Google Maps and do not use this script for commercial purposes.

Prerequisite

The following software is required to run this script:

Usage

You can run the script by providing the search term as an argument. For example, to search for restaurants in New York, you can run the following command:

npx google-maps-scraper "restaurants in New York"

Or you pass the search term as well as the output file name. In this case, 10 scroll events will be performed to load more results:

npx google-maps-scraper "restaurants in New York" 10 "User/Path/To/OutputFile.csv"

This will start a search for restaurants in New York and save the results in a file in the current directory. The file will be named restaurants-in-new-york.csv.

| NAME | TYPE | STAR RATING | ADDRESS | PHONE | WEBSITE | SCRAPED AT | EMAIL | CONTACTED | URL | | ---------------------- | ------------------------ | ----------- | ------------------------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | ----- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | OLIO E PIÙ | Italienisches Restaurant | 4,6 Sterne | 3 Greenwich Ave, New York, NY 10014, Vereinigte Staaten | +1 212-243-6546 | Opentable, Menus, Website | 2024-08-06T15:41:10.406Z | | | Google Maps | | Boucherie West Village | Französisches Restaurant | 4,7 Sterne | 99 7th Ave S, New York, NY 10014, Vereinigte Staaten | +1 212-837-1616 | Opentable, West Village Menus, Website | 2024-08-06T15:41:12.208Z | | | Google Maps | | Gramercy Tavern | Restaurant | 4,6 Sterne | 42 E 20th St, New York, NY 10003, Vereinigte Staaten | +1 212-477-0777 | Menu, Website | 2024-08-06T15:41:14.022Z | | | Google Maps |

Author

This tool is created by Robert Julian Kratz. You can find the source code on robert-kratz.

License

This project is licensed under the Apache License - see the LICENSE file for details.