Skip to content

Added the download_from_record.py module - #73

Merged
tmorrell merged 1 commit into
caltechlibrary:mainfrom
joshua-laughner:feature/download-by-record
Aug 14, 2026
Merged

Added the download_from_record.py module#73
tmorrell merged 1 commit into
caltechlibrary:mainfrom
joshua-laughner:feature/download-by-record

Conversation

@joshua-laughner

Copy link
Copy Markdown
Contributor

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

@tmorrell
tmorrell merged commit 0745076 into caltechlibrary:main Aug 14, 2026
@tmorrell

Copy link
Copy Markdown
Member

Sorry I took so long to merge this! I'm going to wire it in as a replacement for "get_files.py" now

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.

2 participants