Skip to main content

Download 'periodic' Jehovah's Witnesses publications from the command line

Project description

PPD (Periodic Publication Downloader)

usage: ppd [-h] [-m MONTH] [-y YEAR] [-l LANG] [-f FORMAT] [-o] [-r] [-c] [-v] pub

    Short for "Periodic Publication Downloader", ppd is a script written using Python 3.8 that downloads the
    "periodic" Jehovah's Witness publication specified. You can download Awakes, Watchtowers (Public and Study)
    or Meeting Workbooks in any format from the command line.

positional arguments:
  pub                   The type of publication to download (w | wp | g | mwb)

optional arguments:
  -h, --help            show this help message and exit
  -m MONTH, --month MONTH
                        The month of the issue (defaults to the current month)
  -y YEAR, --year YEAR  The year of the issue (defaults to the current year)
  -l LANG, --lang LANG  The short language code of the target language
                        (ex: AM for Amharic, E for English, etc. Defaults to AM)
  -f FORMAT, --format FORMAT
                        The file format of the download. PDF, JWPUB, EPUB, BRL or RTF (defaults to JWPUB)
  -o, --link-only       Only show download links (publications will not be downloaded)
  -r, --hierarchy       Create a directory hierarchy in the current working directory in which downloaded
                        publications will be saved. The hierarchy follows the following pattern:
                                <publication-type>/<publication-language>/<publication-year>/

                        For example if you download all public Watchtowers of 2020 in the Amharic language,
                        this is what the file tree for the downloads will look like:
                                        wp/
                                        └── AM
                                            └── 2020
                                                ├── wp_AM_202001.extn
                                                ├── wp_AM_202005.extn
                                                └── wp_AM_202009.extn
  -c, --cont            Continue fetching links for releases of the specified publication
                        until the end of the year (see the last example below)
  -v, --version         show program's version number and exit

examples:
    Executing the command below will not download any publication as the publication is not specified.
    % ppd --year=2010 --month=2 --format=pdf --lang=e

    This will download the Awake of September 2010 in the PDF format and the English language.
    % ppd g --year=2010 --month=9 --format=pdf --lang=e

    This will download the Public Watchtower of the current year and month in the EPUB format
    and the Arabic language.
    % ppd wp --format=epub --lang=a

    This will download all Meeting Workbook issues from January 2018 up to December 2018
    in the JWPUB format and the Amharic language (note that `--cont` is passed).
    % ppd mwb --year=2018 --month=1 --format=jwpub --lang=am --cont

more on options:
    Short options can be used in place of long ones. Here is the short option equivalent of the
    last example above:
    % ppd mwb -y 2018 -m 1 -f jwpub -l am -c

author:
    Mikyas Tesfamichael (mickyastesfamichael@gmail.com)

It was written using Python 3.8 and the minimum version of Python 3 its compatible with is uncertain.

Installation

ppd is available on PyPI. You can install it with: pip install ppd.

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

ppd-0.2.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

ppd-0.2.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ppd-0.2.2.tar.gz.

File metadata

  • Download URL: ppd-0.2.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for ppd-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0168abd9e7a7088e6956d1261de22b53fb41c2fc1a8f9717ef2e0f3ac53d8865
MD5 e8ad3408f1a9b3afe41b3866b556a1b0
BLAKE2b-256 e71c5bc95aabe45585375e4755b5b7213f1a45bf8321ff31a6dafb8a543e0c6d

See more details on using hashes here.

File details

Details for the file ppd-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: ppd-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for ppd-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97dd422f113eed6b087806d9fde2b75fe62131270d7ba5d4484d6c3f90ae556f
MD5 546bb54c9807645300b5c362957aaf87
BLAKE2b-256 56a4e77e6ab29c172295d328a8a9df2c8da9269b95cd6e1e9f351fa257d187e2

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