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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for getzeit-0.3.tar.gz
Algorithm Hash digest
SHA256 9c8e94c752f35223f28af281d3b4eefbd991cd88d5dbcb034206be521d7f1441
MD5 eddfbbc98d7628f49998f196341c3115
BLAKE2b-256 d4337d201e1e66c805164bfc28e75e715b9cae8ac642de03ed8e444ea5e6aada

See more details on using hashes here.

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

Hashes for getzeit-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 515c51e5cb956310db23c94d2105093337d3f054c84c2362a0bdf02bf29cd3f1
MD5 2918399a479281d7b5b4943322adad30
BLAKE2b-256 658b46687b1105d4beba99e2d68d3b57feace7fca6091e4f66aa705e938e56d1

See more details on using hashes here.

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