-
Notifications
You must be signed in to change notification settings - Fork 1
EAD Download Ruby Script
Ryan Wick edited this page Oct 19, 2018
·
3 revisions
A full EAD export through Archon isn't currently working, so I wrote a Ruby script to log in to Archon, visit the full Collections list, and then download each EAD file individually. There is a 3 second pause after downloading each EAD to reduce load on the server. Our roughly 1300 finding aids take over an hour to download.
Some install and setup info is at the top of the script: https://github.com/osulp/archon/blob/master/ead-download.rb
- Need to install Git for Windows
- Need to install RubyInstaller (with Devkit)
- Once installed, open '''Command Prompt with Ruby'''
- Clone this repo if not present already:
mkdir git
cd git
git clone https://github.com/osulp/archon.git
- Follow Setup instructions at top of script file
- Note, creating the
.env
file on Windows can be tricky but is doable: https://stackoverflow.com/questions/5004633/how-to-manually-create-a-file-with-a-dot-prefix-in-windows-for-example-htacce - One of the Ruby gems used,
net-http-persistent
, has an open bug on Windows that requires force patching the gem: https://github.com/drbrain/net-http-persistent/pull/90/files (need to find the local gem install location (see error message after running script, and change the affected lines)