← 返回
效率工具 中文

free_google_search_with_browser

Search Google using scrapling and return structured results (title, link, snippet). Invoke when user asks to search Google or find information online. Your d...
使用 scrapling 搜索 Google 并返回结构化结果(标题、链接、摘要)。当用户要求搜索 Google 或查找网络信息时调用。
qipengguo
效率工具 clawhub v0.0.1 1 版本 99720.4 Key: 无需
★ 2
Stars
📥 1,743
下载
💾 30
安装
1
版本
#latest

概述

Google Search

This skill searches Google using a stealthy fetcher and returns structured results suitable for LLM consumption.

Usage

Run the python script google_search.py with the query as an argument.

python google_search.py "<query>"

File Structure

  • google_search.py: The main script. It uses scrapling to perform the Google search. It launches a browser instance to fetch results, ensuring high success rates by mimicking real user behavior.
  • verify_search.py: A debugging script. It runs a predefined set of queries to verify that the search functionality works correctly.
  • requirements.txt: Lists the Python dependencies required for the project.

Requirements

  • Python 3
  • scrapling package installed (with playwright and curl_cffi dependencies)

To install dependencies:

pip install -r requirements.txt
playwright install  # Required for browser automation. If slow, consider downloading manually.

Notes & Troubleshooting

Browser Environment (Headless=False)

This skill is configured to run with headless=False (see google_search.py). This means:

  1. GUI Required: The environment where this code runs must support a Graphical User Interface (GUI). It will launch a visible browser window.
  2. No Headless Servers: It will likely fail on headless servers (like standard CI/CD runners or SSH-only servers) unless X11 forwarding or a virtual display (like xvfb) is configured.

Debugging with verify_search.py

If you encounter issues or want to test if the setup is working:

  1. Run python verify_search.py.
  2. This script will execute several test queries (e.g., "python tutorial", mixed English/Chinese).
  3. Watch the browser window to see if it opens and loads Google results.
  4. Check the console output for success messages or error logs.

版本历史

共 1 个版本

  • v0.0.1 当前
    2026-03-29 04:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,316
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,761
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,156