Download DIE ZEIT newspaper in various formats
Project description
getzeit – Download DIE ZEIT newspaper in various formats
Install
The minimal installation is done by
pip install getzeit
which does not include bash/zsh tab completion. For the full installation, do
pip install getzeit[full]
which additionally installs the argcomplete
package.
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
and optionally argcomplete
for bash/zsh tab completion.
Copyright
Copyright 2021, 2023 mahlzahn 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
File details
Details for the file getzeit-0.3.tar.gz
.
File metadata
- Download URL: getzeit-0.3.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c8e94c752f35223f28af281d3b4eefbd991cd88d5dbcb034206be521d7f1441 |
|
MD5 | eddfbbc98d7628f49998f196341c3115 |
|
BLAKE2b-256 | d4337d201e1e66c805164bfc28e75e715b9cae8ac642de03ed8e444ea5e6aada |
File details
Details for the file getzeit-0.3-py3-none-any.whl
.
File metadata
- Download URL: getzeit-0.3-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 515c51e5cb956310db23c94d2105093337d3f054c84c2362a0bdf02bf29cd3f1 |
|
MD5 | 2918399a479281d7b5b4943322adad30 |
|
BLAKE2b-256 | 658b46687b1105d4beba99e2d68d3b57feace7fca6091e4f66aa705e938e56d1 |