Skip to content

Instantly share code, notes, and snippets.

@ryanfb
Created May 31, 2022 13:06
Show Gist options
  • Save ryanfb/dfe064c4a946cfc47f7656c72b96f770 to your computer and use it in GitHub Desktop.
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
#!/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