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/
main.py # FastAPI app + router wiring
config.py # settings (env vars)
api/
solve.py # POST /v1/solve
deps.py # API-key auth dependency
core/
config.py # settings (env vars)
engine/
browser.py # Camoufox context pool + semaphore
actions.py # fill / click / wait_for execution
@@ -64,14 +63,17 @@ X-API-Key: <key>
{
"captcha": "token",
"url": "https://example.com/login",
"actions": [
"actions": [
{"type": "fill", "selector": "#email", "value": "user@example.com"},
{"type": "fill", "selector": "#password", "value": "..."},
{"type": "mouse_move", "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",
"timeout_ms": 120000
"proxy": "socks5://user:pass@host:port",
"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 действия
1. `{"type": "locate", "selector": "#email"},` - навести мышку на элемент
1. `{"type": "mouse_move", "selector": "#email"},` - навести мышку на элемент
2. `{"type": "click"},` - клик в текущие координаты
3. `{"type": "typing", "value": "user@example.com"},` - набор текста