Created
May 31, 2022 13:06
-
-
Save ryanfb/dfe064c4a946cfc47f7656c72b96f770 to your computer and use it in GitHub Desktop.
Command Line Script for Downloading a Manuscript from the British Library using dezoomify-rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget -O - "$1" | fgrep 'id="PageList"' | sed -e 's/^.*value="//' -e 's/" \/>.*//' -e "s/||/\n/g" | grep -v '^##$' | sort | uniq | while read i; do echo "$i"; dezoomify-rs -l "http://www.bl.uk/manuscripts/Proxy.ashx?view=${i}.xml" "${i}.jpg"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment