返回 Skill 列表
extension
分类: 开发与工程无需 API Key

google-search-browser-use

使用浏览器进行谷歌搜索、打开结果并从实时页面中提取关键信息。当用户要求“搜索谷歌”、“在谷歌上查找这个”或需要通过真实的浏览器会话获取当前网页结果(通常是为了避免被机器人拦截)时使用。

person作者: jakexiaohubgithub

Google Search Browser Use

Overview

Run Google searches with browser-use (prefer real browser mode), open results, and extract the relevant snippets or page content. This skill leverages the user's existing browser session to reduce CAPTCHAs.

Prerequisites

Before running the search, ensure the environment is ready:

  1. Check Installation: Verify if browser-use is available in the current PATH.

    which browser-use
    
  2. Install if Missing: If not found, install it using pip.

    python3 -m pip install --user browser-use
    
  3. Locate Binary: If the command is still not found after installation, it is likely in the user's local bin directory. Retrieve the path dynamically:

    python3 -m site --user-base
    # The binary is typically at <USER_BASE>/bin/browser-use
    

Workflow

1) Launch a Google search (Real Browser Mode)

Use the real browser to reuse the user’s logged-in session.

Option A: Standard Execution

browser-use --browser real open "https://www.google.com/search?q=YOUR+QUERY"

Option B: Explicit Path Execution If Option A fails (command not found), use the full path found in Prerequisites:

# Example (adjust based on 'python3 -m site --user-base' output):
${HOME}/Library/Python/3.14/bin/browser-use --browser real open "https://www.google.com/search?q=YOUR+QUERY"

(Note: Replace 3.14 with your current Python version if different)

2) Inspect results and parse

Once the browser is open:

# Check current page state
browser-use --browser real state

# Click on a search result (use index from state output)
browser-use --browser real click <index>

3) Extract or Summarize

  • Goal: Provide a short summary (3-6 bullets) with source citations.
  • Fallback: If browser-use struggles with parsing, use curl with Jina AI for a text-friendly version:
    curl -L "https://r.jina.ai/https://example.com"
    

4) Close the Session

browser-use close

Troubleshooting

  • CAPTCHAs: If encountered, solve them manually in the open browser window.
  • Path Issues: If browser-use cannot be called directly, always prefer finding the path via python3 -m site --user-base rather than guessing.
  • Connection: Ensure no VPN/Proxy is blocking Google results if timeouts occur.