docs: update

This commit is contained in:
protokey committed 2026-09-08 16:31:50 +04:00
1 parent 85b28835d1
commit 522091b084
2 files changed
+9 -7

No files matched your search

+9 -7
View File
@@ -36,11 +36,10 @@ Client → Caddy (TLS) → FastAPI → API-key auth → semaphore acquire
``` ```
src/ src/
main.py # FastAPI app + router wiring main.py # FastAPI app + router wiring
config.py # settings (env vars)
api/ api/
solve.py # POST /v1/solve solve.py # POST /v1/solve
deps.py # API-key auth dependency deps.py # API-key auth dependency
core/
config.py # settings (env vars)
engine/ engine/
browser.py # Camoufox context pool + semaphore browser.py # Camoufox context pool + semaphore
actions.py # fill / click / wait_for execution actions.py # fill / click / wait_for execution
@@ -64,14 +63,17 @@ X-API-Key: <key>
{ {
"captcha": "token", "captcha": "token",
"url": "https://example.com/login", "url": "https://example.com/login",
"actions": [ "actions": [
{"type": "fill", "selector": "#email", "value": "user@example.com"}, {"type": "fill", "selector": "#email", "value": "user@example.com"},
{"type": "fill", "selector": "#password", "value": "..."}, {"type": "fill", "selector": "#password", "value": "..."},
{"type": "mouse_move", "selector": "#submit"},
{"type": "click", "selector": "#submit"}, {"type": "click", "selector": "#submit"},
{"type": "wait_for", "selector": ".dashboard", "timeout_ms": 30000} {"type": "wait_for", "selector": ".dashboard", "timeout": 30}
], ],
"proxy": "http://user:pass@host:port", "proxy": "socks5://user:pass@host:port",
"timeout_ms": 120000 "screen": "1280x920",
"user-agent": "Firefox",
"timeout": 120
} }
``` ```
@@ -114,7 +116,7 @@ On failure, `status` is `"error"` and `error` carries a machine-readable reason
Fill команда включает 3 действия Fill команда включает 3 действия
1. `{"type": "locate", "selector": "#email"},` - навести мышку на элемент 1. `{"type": "mouse_move", "selector": "#email"},` - навести мышку на элемент
2. `{"type": "click"},` - клик в текущие координаты 2. `{"type": "click"},` - клик в текущие координаты
3. `{"type": "typing", "value": "user@example.com"},` - набор текста 3. `{"type": "typing", "value": "user@example.com"},` - набор текста
File renamed without changes.