Skip to content

Added the download_from_record.py module#73

Open
joshua-laughner wants to merge 1 commit intocaltechlibrary:mainfrom
joshua-laughner:feature/download-by-record
Open

Added the download_from_record.py module#73
joshua-laughner wants to merge 1 commit intocaltechlibrary:mainfrom
joshua-laughner:feature/download-by-record

Conversation

@joshua-laughner
Copy link

Hi Tom, all,

This week I worked on added the ability to one of my projects to automatically download input files from a CaltechData record. It took me a bit to work out how to do that; since the records' content URLs return a redirection URL but a 200 status code, requests doesn't automatically follow the redirect. I figured if I stumbled over that for a while, others probably have too. I've added the solution I worked out as the download_from_record.py module, hopefully you think it will be useful to include. Let me know if you have any questions.

Best,
Josh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant