Perl tool for downloading images from IIIF manifests
- Perl > 5.10
- Perl Modules
- JSON
- IO::Socket::SSL
- Mozilla::CA
- LWP::UserAgent
- LWP::Simple
- Data::Dumper
- Getopt::Long
./iiif-scraper.pl --target=<TargetDir> --iiif=<ManifestURL>
is the basic mode of operation. It will create a directory named TargetDir
, if one does not exist, and download an IIIF manifest from ManifestURL
. The manifest gets parsed and all images downloaded, with internal filename, to the TargetDir
--verbose
-- Emit a bunch of debugging information to console--numbers
-- Do not use the internal filename for images, simply number them in sequence--labels
-- Rename the files to the value in thelabel
in the manifest. The label is slightly modified to be a filename, spaces are replaced with _ and numbers are 0-padded, sofol. 123 v.jpg
becomesfol._00123_v.jpg
--size=<SIZE>
-- request the images with maximum height of SIZE. This is automatically set to 1200 if not set for the National Library of Wales to accomodate their restrictions