Skip to main content

Download DIE ZEIT newspaper in various formats

Project description

getzeit – Download DIE ZEIT newspaper in various formats

PyPI Version PyPI License

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


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.1.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

getzeit-0.3.1-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

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

Hashes for getzeit-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8b156ecbe02dafc8c7054a21b18c1ba4d4c75c327bca9eaeed30e79a43213f34
MD5 81da91f41fc8dbc784d3642fe501bdc5
BLAKE2b-256 473b27c0d5a615ff6a337c9adf08a2d91b172a65d9153885f97ee0d5680994bb

See more details on using hashes here.

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

Hashes for getzeit-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8c085cf4bcf04de4dd4385c513517ea39569836b92240e2d381e8cca9b32267
MD5 2405714e80223d48d393538e726fb157
BLAKE2b-256 07aa3f850f49b7b6b6668d84b55ba47fc39656a3a779778bbdc846463e32e41d

See more details on using hashes here.

Supported by

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