loc.gov started using Cloudflare protection to block HTTP access from default
user agents, so identify ourselves as an Evergreen user agent to restore our
access.
Long term we should evolve to using the linked open data access method
via id.loc.gov but let's get this working first.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
use XML::LibXML;
use XML::LibXML::Reader;
-use LWP::Simple;
+use LWP::Simple qw($ua get);
use Data::Dumper;
+# loc.gov blocks basic user agents now
+$ua->agent('Evergreen/3.1');
+
my %relator;
my $code = 0;
my $fullname = 0;