docs: update examples and changelog to reflect CookieResult usage and Python version changes

This commit is contained in:
bohd4nx
2026-04-14 01:57:12 +03:00
parent 6a5e007a1b
commit 415d9d9a9c
14 changed files with 21 additions and 15 deletions
+3 -1
View File
@@ -57,7 +57,9 @@ Requires Python 3.10+.
- **Automatically** (recommended) — use `get_cookies_from_browser()`, which reads them directly from your browser's on-disk store. No extension needed:
```python
from pyfragment.utils import get_cookies_from_browser
cookies = get_cookies_from_browser("chrome") # or "firefox", "edge", "brave", ...
result = get_cookies_from_browser("chrome") # or "firefox", "edge", "brave", ...
# result.cookies — dict[str, str] to pass to FragmentClient
# result.expires — ISO 8601 expiry of stel_ssid, or None for session cookies
```
- **Manually** — install [Cookie Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) and export these four keys: `stel_ssid`, `stel_dt`, `stel_token`, `stel_ton_token`. Pass them as a `dict` or JSON string.