Extract Google Business Data (v3)

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

目前為 2023-09-11 提交的版本,檢視 最新版本

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

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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址