使用 Scrapling 的 StealthyFetcher/StealthySession 执行 Google 搜索,返回干净的顶部结果标题和链接(纯文本或 JSON)。...
This skill provides one job: do Google searches reliably and return the top result titles + URLs.
It ships two scripts:
{baseDir}/scripts/install.sh → installs dependencies into a local venv (recommended).{baseDir}/scripts/google_search.py → runs the search and prints results.Run:
bash
bash {baseDir}/scripts/install.sh
What it does:
{baseDir}/.venvscrapling[fetchers]scrapling install (downloads Playwright browsers + system deps)bash
{baseDir}/.venv/bin/python {baseDir}/scripts/google_search.py \
--query "Top Indian universities" \
--top 10 \
--hl en \
--gl in
bash
{baseDir}/.venv/bin/python {baseDir}/scripts/google_search.py \
--query "Top Indian universities" \
--top 10 \
--hl en \
--gl in \
--json
sudo for Playwright system dependencies. The installer will attempt sudo if available.