Skip to main content

Download all 'Order of the Stick' comics for local reading.

Project description

oots-get

PyPI version fury.io PyPI license PyPI status

This is a simple Python script to maintain a local archive of the web comic 'The Order of the Stick', though can probably be modified reasonably easily for others if required.

This is a work in progress although base functionality is working perfectly.

Primarily an exercise in using 'Beautiful Soup' with a live target. Also I love this comic and often spend time without internet.

This is a rewrite from scratch of my original Ruby script of the same name.

Usage

Install

pip install oots-get

Quick start

Run the script :

oots-get

This will parse the OOTS website, then download any missing comics. These comics will be stored in the comics/oots subdirectory of the users home directory by default though this will be changable shortly via settings file.

This package has been tested to work under both Linux and Windows 10.

Configuration File

To be added.

Command line switches

  • --only-new ( short form: -n) : only check for new up to the last comic already downloaded, this speeds up operation.

To-Do

Not in any specific order :

  • Improve error-checking and recovery
  • Add command line options to modify configuration, and a config file. Any options on command line to have precedence over settings specified in the configuration file.
  • Add command line options for quiet as well as the existing verbose, with same options in the config file.
  • Option to save log file for each run.
  • Add testing!
  • Add colours to the output, just because.
  • Add option to start checking at the last downloaded comic instead of start.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Building

Create an 'editable' install

From the root of the project, run the following which will install an editable version of the package. This updates as you change the source, so no need to keep reinstalling the package to test :

pip install -e .

(Do not forget the tailing period!)

Build Package

Install dependencies :

pip install -r requirements.txt

Run Tests. There are only dummy tests at the moment, this will change shortly :

pytest

To create the source and wheel packages :

python -m build

Build documentation (from the docs subdiretory) :

make html

Copyright

(C) Grant Ramsay (grant@gnramsay.com) 2021.

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

oots_get-1.1.1.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

oots_get-1.1.1-py3-none-any.whl (6.4 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