mirror of
https://github.com/NohamR/cafeyn-dl.git
synced 2026-07-11 22:41:59 +00:00
Add cafeyn-dl initial implementation
This commit is contained in:
33
README.md
Normal file
33
README.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user