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-review-scraper

v1.4.0

Published

A review scraper made for google maps

Downloads

2,202

Readme

YasogaN

Frameworks/Technologies

hex2dec


Installation

Install with npm

  npm install google-maps-review-scraper

Install with yarn

  yarn add google-maps-review-scraper

Usage/Examples

import { scraper } from "google-maps-review-scraper"

const reviews = await scraper("url", { sort_type: "sort_type", search_query: "search_query", pages: "pages", clean: false })

Arguments

url - string: A google maps place url as explained here

sort_type - string: The sort parameter ("relevent", "newest", "highest_rating", "lowest_rating"). Defaults to "relevent"

search_query - string: Search query to search in reviews. Defaults to nothing.

pages - integer: Number of pages that will be scraped. Will return less reviews if no more reviews exist. Defaults to max pages.

clean - boolean: Whether to return a cleaned output or not. Defaults to false.

[!NOTE] sort_type, search_query and pages are all optional paremeters which should be included within the object literals (the curly brackets).

Returns

reviews - Promise<Array|number>: A promise that resolves to a array containing the reviews in these formats depending on the value of clean or the number 0 if no reivews exist.


Documentation of API's/URL's used

All documentation related to API's and URL's used in this project can be found in the docs folder divided into endpoints for API's and urls for URL's. Note that everything included here was based on my reasearch, so errors could be present. A pull request is always welcome (see contributing)


License

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

Summary of the MIT License

The MIT License is a permissive open-source license that allows users significant freedom with minimal conditions.

Key Permissions:

  1. Freedom to Use: You can use the software for any purpose, including commercial use.
  2. Freedom to Modify: You are free to modify the software as needed.
  3. Freedom to Distribute: You can distribute copies of the software, whether in its original or modified form.
  4. Freedom to Sell: You can sublicense, distribute, and even sell the software.

Key Conditions:

  • Attribution: You must include the original copyright notice and the MIT license text in any copies or substantial portions of the software.

No Warranty:

  • The software is provided "as is," with no warranties or guarantees. The author is not liable for any damages arising from the use of the software.

For full details, refer to the license text.


Contributing

I welcome contributions from the community! Please see our CONTRIBUTING.md for details on how to contribute to this project.


Code of Conduct

Please note that this project is governed by a Code of Conduct. By participating, you are expected to uphold this code.


Acknowledgements

Special thanks to @marin-m for his outstanding work on the pbtk repository. His contributions and insights on protocol buffers were invaluable in my research and development process.

Dependencies


Legal Disclaimer

This project is not affiliated with, endorsed by, or associated with Google LLC or any of its products and services. All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

Purpose of the Project

This project was created with the primary intent of serving as an educational tool and proof of concept. The objectives include:

  • Educational Use: To provide a hands-on learning experience in developing software, using APIs, and understanding the integration of various technologies. The project is intended to help developers, students, and enthusiasts enhance their skills and knowledge.
  • Proof of Concept: To demonstrate the feasibility and potential of certain technical approaches and solutions. This includes showcasing how different APIs and tools can be utilized together in a functional application.

Non-Commercial Nature

This project is non-commercial and is not intended for any form of profit generation or business use. It is shared openly with the community to foster learning and collaboration.

Intellectual Property and Fair Use

We acknowledge and respect the intellectual property rights of Google and other third parties. Any content used from external sources is credited appropriately, and no proprietary data or materials are misused.

Contact and Legal Concerns

If you have any concerns or questions regarding the legality of this project, any specific legal queries or issues, please seek professional legal advice.