Daniel Friesel > comirror > comirror-setup

Download:
comirror-0.1.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

comirror-setup - Set up a directory to be used by comirror

SYNOPSIS ^

comirror-setup comis urls...

DESCRIPTION ^

comirror-setup takes three URL arguments: The very first page of the web comic, the second page, and the last but one page.

Based on these arguments, it tries to set up the current working directory so that you only need to call comirror to mirror the webcomic you were pointing to. It does this by comparing the last two URLs to determine a correct regular expression for the comic images and comparing the first two to figure out the text on the "next" link.

It then creates comirror.conf and comirror.state so that you only need to call comirror(1) to start downloading.

Unless all options (or --batch) were specified on the commandline, comirror will interactively ask the user for further options.

OPTIONS ^

--batch

Do not ask questions interactively. Take default values or those specified via options on the commandline.

--link-to-image bool

First try downloading a link matching image_re, and if that fails look for an image matching image_re. Note that this does not (yet) affect image_re detection.

EXIT STATUS ^

Non-zero on grave errors, zero otherwise.

CONFIGURATION ^

comirror-setup is not configurable.

DEPENDENCIES ^

This script requires the perl module WWW::Mechanize.

BUGS AND LIMITATIONS ^

As for comirror: This script has no brain. So far, this script is very dumb and fragile. It's recommended to take a quick glance at the image_re before actually calling comirror to make sure you get what you want.

AUTHOR ^

Copyright (C) 2010 by Daniel Friesel <derf@chaosdorf.de>

LICENSE ^

  0. You just DO WHAT THE FUCK YOU WANT TO.
syntax highlighting: