- name
- dog-search
- description
- >
- metadata
- openclaw
- requires
- env
- bins
- primaryEnv
- SCRAPINGDOG_API_KEY
dog-search
Run Google searches from the command line using the ScrapingDog API.
Setup
Requires the SCRAPINGDOG_API_KEY environment variable to be set:
export SCRAPINGDOG_API_KEY=your_key_hereInstall the dependency if not already present:
pip install requestsScript location
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.
Usage
python scripts/search.py "your query"
python scripts/search.py "your query" --country uk --lang en
python scripts/search.py "your query" --jsonArguments
| Argument | Default | Description |
|---|---|---|
query | required | The search query string |
--country | us | Country code (us, uk, de, fr, ...) |
--lang | en | Language code (en, fr, de, ...) |
--json | off | Print raw JSON response instead of formatted output |
Workflow
- Check that
SCRAPINGDOG_API_KEYis set in the environment. If not, tell the user to set it and stop. - Resolve the path to
scripts/search.pyrelative to this skill's directory. - Run the script with
python scripts/search.py "<query>"plus any relevant flags. - Parse and present the results clearly to the user.
Output format (default)
Results for: "your query"
────────────────────────────────────────────────────────────
[1] Result Title
https://example.com/page
Snippet describing the result...
────────────────────────────────────────────────────────────
10 result(s)Error handling
- Missing API key → script exits with a clear message; tell the user to set
SCRAPINGDOG_API_KEY - HTTP error → script prints the status code and response body
- No results → script prints "No results found."