安裝
HydraSkill 為 Python、Node.js 與 Go 提供官方 SDK。選擇你的語言:
Python
Section titled “Python”pip install hydraskill需要 Python 3.8+。相容於 requests、httpx、aiohttp 與 playwright。
Node.js
Section titled “Node.js”npm install hydraskill需要 Node.js 18+。可搭配 axios、fetch、puppeteer 與 playwright。
go get github.com/hydraskill/go-sdk需要 Go 1.21+。
CLI(選用)
Section titled “CLI(選用)”用於快速測試與除錯:
npx hydraskill init這會建立一個 .hydraskill.yml 設定檔,並驗證你的 API key。
取得你的 API Key
Section titled “取得你的 API Key”- 建立帳號(提供免費方案)
- 前往 Dashboard → API Keys
- 點選 Create Key
- 複製 key —— 它只會顯示一次
export HYDRASKILL_API_KEY="sk-your-key-here"from hydraskill import ProxyClient
client = ProxyClient() # 從環境變數讀取 HYDRASKILL_API_KEYstatus = client.health_check()print(status) # {'status': 'ok', 'latency_ms': 45}→ 快速上手指南 —— 發出你的第一個 proxy 請求