Update: This now includes code to handle redirects (3xx) based on location header
This PR handles the hathitrust check failure.
Based on HTML structure changes on hathitrust site, the get_hathifile(task) method now extracts elements with a different css query: '.btable-wrapper table.btable tbody tr td a'
This query was found using the JavaScript console in my browser
The uri has been changed to the temporary/redirect location for now ("https://www.hathitrust.org/member-libraries/resources-for-librarians/data-resources/hathifiles/") just to be sure the new query allows the check to pass
Note: I will update this PR with a conditional to handle the redirect more gracefully, especially since the uri may change again in the future****
Update: This now includes code to handle redirects (3xx) based on location header
This PR handles the hathitrust check failure.
get_hathifile(task)
method now extracts elements with a different css query:'.btable-wrapper table.btable tbody tr td a'
Theuri
has been changed to the temporary/redirect location for now("https://www.hathitrust.org/member-libraries/resources-for-librarians/data-resources/hathifiles/")
just to be sure the new query allows the check to passNote: I will update this PR with a conditional to handle the redirect more gracefully, especially since the uri may change again in the future****