feat: Enhance cookie handling and browser support

- Added new exceptions in `exceptions.py` for unsupported browsers and cookie read failures.
- Introduced `get_cookies_from_browser` function in `cookies.py` to extract session cookies from various browsers.
- Modified tests to cover new cookie extraction functionality, including success and failure cases.
- Refactored existing tests to use `patch.object` for mocking client calls.
- Updated dependencies in `pyproject.toml` to include `rookiepy` for cookie extraction.
This commit is contained in:
bohd4nx
2026-04-14 00:12:22 +03:00
parent 503baa9a94
commit 733d138fcc
28 changed files with 507 additions and 737 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v7.6.0
- uses: astral-sh/setup-uv@v8.0.0
- run: uv pip install --system ".[dev]"