My favorites | Sign in
Logo
                
Feeds:
Project feeds

This consists of two Python command-line scripts:

fetch-dilbert downloads individual Dilbert comic strips

update-dilbert helps you maintain a private Dilbert collection

Both can be run on Python 2.5 on any supported platform, with the Python Imaging Library (PIL) module. Windows EXE versions of the scripts are also available that do not require Python to be installed.

Disclaimer

These scripts are automated scripts that will scrape various pages from dilbert.com. This is a violation of their terms of use. Your use of these scripts is at your own risk. By downloading or using these scripts, you agree to not hold Scott Wallace (me) liable for any action taken against you due to your use or download of them.

Requirements

If you're using the EXE version on Windows, you don't need to install these. Otherwise, you'll need to install these if you haven't already:

You can install these on Ubuntu and other Debian-based distros with: $ sudo apt-get install python python-imaging

fetch-dilbert

This script is capable of downloading Dilbert strips for a given day or days, or a whole year at a time.

Usage

Syntax (for geeks): fetch-dilbert (options) [--output=|-o OUTPATH]

The script takes two arguments. One tells it which strip(s) to download, and the other tells it where to put them. As of 2008-06-27, the order of the arguments does not matter.

The only required argument is one of the following:

Download one or more strips. Each DATE can be either in YYYY-MM-DD format (e.g. 2008-06-24) or the word today (which tells it to download today's strip), and they are separated by commas.
Downloads all strips for the year YEAR.
Shows a help message.

The other argument is optional, and it is the folder where you want the strip(s) to be saved.

Examples

Downloads today's strip and the one from June 23, 2008, and saves them to the current working directory.
Downloads the strip from April 15, 2008, and saves it to the folder Comics/Dilbert/2008 within the current directory.
Downloads the strips from the year 1997 and saves them to the folder Comics/Dilbert/1997 within the current directory.

Changes

update-dilbert

This script helps you maintain a collection of Dilbert strips. It will download all strips that have been published during the current year that you don't already have. Run daily after midnight Pacific time for best results.

Usage

Syntax (for geeks): update-dilbert [--help | -h] [-v | --verbose] [-p |--path=(path to collection)]

Run update-dilbert -p (path to collection) where (path to collection) is where you keep your Dilberts and it will do the dirty work for you. If you leave out (path to collection), it will look in the current directory. (path to collection) should have one folder for each year of Dilberts that you have (e.g. 1997, 1998, 1999, 2000, ...).

If you want it to tell you what it's doing, run update-dilbert -v (path to collection). update-dilbert -h will show a help message.

Changes









Powered by Google Project Hosting