Extract Google Business Data (v9)

Extracts and displays Google Business data with a slide-out panel for logging and information display

目前為 2024-09-02 提交的版本,檢視 最新版本

作者
sharmanhall
評價
0 0 0
版本
9.0
建立日期
2023-09-11
更新日期
2024-09-02
尺寸
12.0 KB
授權條款
未知
腳本執行於

Google Business Data Extractor (v9.0)

Description

This userscript enhances your Google Business Profile viewing experience by extracting and displaying key business information in a convenient slide-out panel. It's perfect for marketers, SEO professionals, or anyone who needs quick access to business data on Google. This UserScript automatically extracts and displays the business name, data-pid, and data-cid values from a Google Business profile page. It is designed to help users quickly retrieve essential business data from Google Business profiles.

Features:

  • Extracts and displays business name, Place ID, and CID
  • Provides direct links to Google Maps, Local Google, and Write a Review pages
  • Slide-out panel for easy access to all extracted information
  • Copy buttons for quick data transfer
  • Console logging within the panel for troubleshooting
  • Popup notifications for user actions and script status

Google Business Extractor Screenshot

Installation

  1. Ensure you have a UserScript manager installed in your browser, such as Tampermonkey or Greasemonkey.
  2. Click on the "Raw" button on the script's GitHub page to view the script file.
  3. Your UserScript manager should automatically recognize the script and offer to install it. Follow the on-screen instructions to complete the installation.

How to Use:

  1. Install the script using Tampermonkey or Greasemonkey
  2. Navigate to any Google Business Profile page
  3. The script will automatically run when the page loads.
  4. The script will attempt to find and display the following information on the page:
    • Business Name: Displayed in green text in the browser console.
    • data-pid: Displayed in green text in the browser console and red text on the page, below the business name.
    • data-cid: Displayed in green text in the browser console and blue text on the page, below the business name.
  5. Click the orange tab on the right side of the page to open the slide-out panel
  6. View extracted data and use the copy buttons as needed

Troubleshooting

  • Business name not found: Ensure that the business profile page has fully loaded and that the h2[data-attrid="title"] element is present in the page's HTML.
  • data-pid not found: Ensure that the "Write a Review" button is present on the page and that the #wrkpb element is present in the page's HTML.
  • data-cid not found: Ensure that the search result link is present on the page and that the a[jscontroller="wuU7pb"] element is present in the page's HTML.

Support

For support, please reach out in the comments.

License

This script is released under the MIT License.

Changelog

Version 9.0 (Current)

  • Improved formatting of the slide-out panel for better readability
  • Renamed variables to more user-friendly names (e.g., "Place ID URL" instead of "pidLink")
  • Added "Write A Review URL" to the panel and console log
  • Improved console log readability with line breaks between entries
  • Updated styling for a cleaner look

Version 8.0

  • Added copy buttons for each piece of extracted data
  • Implemented popup notification system for user feedback
  • Added credits to the bottom of the slide-out panel

Version 7.0

  • Introduced the slide-out panel feature
  • Added console logging within the panel
  • Improved error handling and user notifications

Version 6.0 and earlier

  • Initial script development
  • Basic data extraction and display on the Google Business Profile page

Version 4.0

  • New Feature: Added a "Write Review" button linking to the Google review page using the placeid.
  • Improvements: Enhanced error handling and improved the clarity of console messages.
  • Bug Fixes: Fixed issues with elements not being found on certain pages.