PythonClaw http_request

install
source · Clone the upstream repo
git clone https://github.com/ericwang915/PythonClaw
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ericwang915/PythonClaw "$T" && mkdir -p ~/.claude/skills && cp -r "$T/pythonclaw/templates/skills/dev/http_request" ~/.claude/skills/ericwang915-pythonclaw-http-request && rm -rf "$T"
manifest: pythonclaw/templates/skills/dev/http_request/SKILL.md
source content

HTTP Request

When to Use

  • Call REST APIs (GET, POST, PUT, DELETE, PATCH)
  • Test or probe API endpoints
  • Fetch JSON or data from a URL
  • Send request bodies and custom headers

When NOT to Use

  • Web search — use
    tavily_search
    (web_search tool)
  • Scraping page content — use
    web_scraper
  • Simple file downloads — use
    curl
    or
    wget
  • GitHub operations — use
    github
    skill

Setup

Install dependency:

pip install requests

Usage/Commands

python {skill_path}/request.py URL [options]
OptionDescription
`--method GETPOST
--data '{"key": "value"}'
JSON request body
--header "Name: Value"
Custom header (repeatable)
--timeout N
Timeout in seconds
`--format textjson

Notes

  • For APIs requiring auth, use
    --header "Authorization: Bearer <token>"
  • JSON body must be valid; escape quotes properly for shell
  • Prefer this for structured API calls; use web_scraper for HTML extraction