docs: update
This commit is contained in:
1 parent
85b28835d1
commit
522091b084
2 files changed
+8
-6
No files matched your search
@@ -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
|
||||
@@ -67,11 +66,14 @@ X-API-Key: <key>
|
||||
"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"},` - набор текста
|
||||
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user