Download "Die ZEIT" epapers as pdf or epub. requires an active subscription
- Rust 100%
|
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
|
||
|---|---|---|
| src | ||
| .gitignore | ||
| .woodpecker.yaml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| config.example.toml | ||
| LICENSE | ||
| README.md | ||
zscrape - download "Die ZEIT" epapers blazingly fast
This is a project inspired by Stelzch's zeitdownloader but rewritten in rust and adapted to work around the problem that was introduced by ZEIT because of which zeitdownloader was discontinued.
Usage
Get your cookie
Because ZEIT added a captcha to their login, unfortunately it is not possible anymore to login from the cli with email/password. Therefore, you have to extract your session cookie from the website:
- Login to epaper.zeit.de
- Open Devtools with F12
- Click on
Storage->Cookies - Search for a cookie named
zeit_sso_201501and copy the contents
This cookie will not last for a very long time, you have to manually rotate it whenever it expires.
CLI
Usage: zscrape [OPTIONS]
Options:
-k, --cookie <COOKIE> SSO cookie obtained from epaper.zeit.de
-i, --issue <ISSUE> Issues to download. This argument can be used multiple times
-o, --out-dir <OUT_DIR> Directory to download the files into. defaults to
-c, --config <CONFIG> Override default config location ($HOME/.config/Zscraper.toml)
-v, --verbose Enable verbose output. default behaviour is only errors shown
-h, --help Print help
-V, --version Print version
Configuration
Your session cooke and a default download location can be set in ~/.config/Zscraper.toml:
out_dir = "/Users/mbossing/Downloads"
cookie = "YOUR zeit_sso_201501 cookie extracted fromt the webpage"
License
AGPL v3, refer to the license file.