Greasy Fork is available in English.

Extract Google Business Data (v3)

Extracts and displays the data-pid and data-cid values from a Google Business profile page

Auteur
sharmanhall
Nombre d'installations quotidiennes
0
Nombre d'installations
5
Évaluations
0 0 0
Version
3.0
Créer
2023-09-11
Mis à jour
2023-09-11
Licence
S/O
S'applique à

Google Business Data Extractor (v2)

Description

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.

Author

sharmanhall

Version

0.1

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.

Usage

  1. Navigate to a Google Business profile page. The script will automatically run when the page loads.
  2. 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.
  3. If the script cannot find any of the above elements on the page, it will display an error message in the browser console.

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.