Adding support to download the Files #9
Open
abhi-glitchhg wants to merge 4 commits into
Open
Conversation
…n to include the tqdm status bar
Author
|
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("./") |
abhi-glitchhg
commented
Apr 10, 2023
give pwd as default value for root
Author
|
@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. |
Author
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With these changes, record object can support the downloading of the files.
Addresses #5