getzeit – Download DIE ZEIT newspaper in various formats
Installation from PyPI
pip install getzeit[full]
or
pip install getzeit[full]
which additionally installs argcomplete for bash/zsh tab completion.
Installation from source code
Clone the repository and inside the folder do
pip install .
or
pip install .[full]
Usage as standalone program
Simply run
getzeit
to download the current issue of DIE ZEIT.
At the first call it will open a browser with a temporary profile to get the
session cookies from the login. You need to login with your credentials. The next
step of accepting the advertisement and tracking is not necessary. After closing
the browser the program will continue with the download of the specified issues.
At subsequent calls the stored cookies will be used. If needed the cookies can be
recreated with --recreate-cookie-jar at any time.
Access the help of the program with
getzeit -h
to obtain information about the optional arguments and the issue selection procedure.
Usage as python module
import getzeit
with getzeit.ZeitSession() as session:
current_issue = session.get_issues()[0]
session.download_issue(current_issue)
Dependencies
python>=3.8 with requests,
browser_cookie3>=0.20.1
and optionally argcomplete for bash/zsh
tab completion.
Copyright
Copyright 2021–2024 Robert Wolff mahlzahn@posteo.de
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Release files for getzeit 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| getzeit-0.3.1.tar.gz | 22.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| getzeit-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.7 kB
Release files / getzeit-0.3.1.tar.gz
| Download URL | getzeit-0.3.1.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b156ecbe02dafc8c7054a21b18c1ba4d4c75c327bca9eaeed30e79a43213f34
|
|
BLAKE2b-256 checksum How to use checksums |
473b27c0d5a615ff6a337c9adf08a2d91b172a65d9153885f97ee0d5680994bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.7
|
Release files / getzeit-0.3.1-py3-none-any.whl
| Download URL | getzeit-0.3.1-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8c085cf4bcf04de4dd4385c513517ea39569836b92240e2d381e8cca9b32267
|
|
BLAKE2b-256 checksum How to use checksums |
07aa3f850f49b7b6b6668d84b55ba47fc39656a3a779778bbdc846463e32e41d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.7
|