Add cafeyn-dl initial implementation

This commit is contained in:
√(noham)²
2026-05-17 14:22:45 +02:00
commit 4d148fb3aa
7 changed files with 685 additions and 0 deletions

33
README.md Normal file
View File

@@ -0,0 +1,33 @@
# cafeyn-dl
Download a Cafeyn issue from a reader URL and export it as a PDF.
## Install
```bash
uv sync
```
## Configure
```bash
cp .env.example .env
```
Set values in .env:
```env
JWT_TOKEN=...
WEBSESSIONID=...
```
Get them from browser cookies (Cafeyn, while logged in):
- `Cafeyn_authtoken_V2` -> `JWT_TOKEN`
- `Cafeyn_webSessionId` -> `WEBSESSIONID`
## Use
```bash
uv run python main.py https://api.cafeyn.co/ticket/reader/21712793/2258961
uv run python main.py <reader_url> --output-dir output --max-workers 16
```