Google Reviews Scraper & Exporter to JSON
Description:
This UserScript is designed for use with Tampermonkey and allows users to scrape and collect Google Maps reviews from a specific place. After scraping the reviews, it automatically formats the information into a JSON structure and provides an option to copy the r###lts directly to the clipboard.
Features:
- Scrape Reviews: Collects review data such as reviewer's name, image URL, review date, star rating, review URL, and review content.
- Expand Truncated Reviews: If a review content is truncated (cut off) on the page, the script will automatically expand it to capture the full content.
- Export to Clipboard: The script provides a button that, once clicked, will copy the scraped review data in JSON format to your clipboard.
- Easy-to-Use Buttons: Two buttons are added to the Google Maps interface - one for scraping reviews and another for copying them to the clipboard.
Usage:
- Navigate to a Google Maps place page (URLs that match
https://www.google.com/maps/place/*
).
- You will see two new buttons added to the interface: "Scrape Reviews" and "Copy to Clipboard".
- Click on "Scrape Reviews" to collect the review data.
- After scraping, click on "Copy to Clipboard" to copy the JSON-formatted review data.
Notes:
- Ensure Tampermonkey is installed and active in your browser.
- This script does not make any external calls or store any data outside of the session. It only scrapes the data visible on the Google Maps page.
- Please use responsibly and adhere to Google's terms of service.
Do ensure you have the right permissions and adhere to terms of service when scraping data from websites.