Skip to main content

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

This version

0.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getzeit-0.3.tar.gz (22.4 kB view hashes)

Uploaded Source

Built Distribution

getzeit-0.3-py3-none-any.whl (22.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page