Download DIE ZEIT newspaper in various formats
Project description
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/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file getzeit-0.3.1.tar.gz.
File metadata
- Download URL: getzeit-0.3.1.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b156ecbe02dafc8c7054a21b18c1ba4d4c75c327bca9eaeed30e79a43213f34
|
|
| MD5 |
81da91f41fc8dbc784d3642fe501bdc5
|
|
| BLAKE2b-256 |
473b27c0d5a615ff6a337c9adf08a2d91b172a65d9153885f97ee0d5680994bb
|
File details
Details for the file getzeit-0.3.1-py3-none-any.whl.
File metadata
- Download URL: getzeit-0.3.1-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8c085cf4bcf04de4dd4385c513517ea39569836b92240e2d381e8cca9b32267
|
|
| MD5 |
2405714e80223d48d393538e726fb157
|
|
| BLAKE2b-256 |
07aa3f850f49b7b6b6668d84b55ba47fc39656a3a779778bbdc846463e32e41d
|