使用 ScrapingDog API 通过捆绑的 search.py CLI 脚本搜索 Google。当用户需要搜索网络或查询信息时使用此技能。
Run Google searches from the command line using the ScrapingDog API.
Requires the SCRAPINGDOG_API_KEY environment variable to be set:
bash
export SCRAPINGDOG_API_KEY=your_key_here
Install the dependency if not already present:
bash
pip install requests
The search script is bundled at: scripts/search.py (relative to this SKILL.md).
When using this skill, resolve the absolute path to scripts/search.py from the skill directory and run it with python.
bash
python scripts/search.py "your query"
python scripts/search.py "your query" --country uk --lang en
python scripts/search.py "your query" --json
ArgumentDefaultDescriptionqueryrequiredThe search query string--countryusCountry code (us, uk, de, fr, ...)--langenLanguage code (en, fr, de, ...)--jsonoffPrint raw JSON response instead of formatted output
SCRAPINGDOG_API_KEY is set in the environment. If not, tell the user to set it and stop.scripts/search.py relative to this skill's directory.python scripts/search.py "<query>" plus any relevant flags.text
Results for: "your query"
────────────────────────────────────────────────────────────
[1] Result Title
https://example.com/page
Snippet describing the result...
────────────────────────────────────────────────────────────
10 result(s)
SCRAPINGDOG_API_KEY