-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support to download the Files #9
base: main
Are you sure you want to change the base?
Conversation
…n to include the tqdm status bar
minimalistic usage: from pyzenodo3 import Zenodo
zen = Zenodo()
rec = zen.get_record(<give your record_id>) # record_id should be of type string; # Todo add static typing.
rec.download("./") # here you can give the path where you want to download the file.
# using search method
recs = zen.search("scivision") # remember this search method returns the list of record objects; hence one has to iterate on the returned object to use the download method.
for rec in recs:
rec.download("./") |
give pwd as default value for root
@scivision, could you please review the PR and let me know your suggestions? Thanks. |
Any chance you could proceed to merging? It'd be very useful to me, at least. |
The repository is stale; the maintainers are not responding. So merge isnt possible. But if you still want to use the features proposed in this pr, you can install pyzenodo3 from my branch. # activate your environment
git clone https://github.com/abhi-glitchhg/pyzenodo3.git
pip install -e pyzenodo3
Thanks, |
With these changes, record object can support the downloading of the files.
Addresses #5