Open dmbates opened 5 years ago
Yes, this look like it should work well.
Take a look at https://github.com/oxinabox/DataDepsGenerators.jl/blob/master/src/APIs/Figshare.jl
Or really anything else from the APIs folder. There are basically a set of methods to overload. To add support for a new API generator.
You can see how all the methods get invoked Here https://github.com/oxinabox/DataDepsGenerators.jl/blob/master/src/generate.jl#L71
I have done some exploring of the API at
https://api.osf.io
. The way that I would see generating aDataDep
for files in a project on that site iskz483
which is the project "Stable Preview Difficulty Effects"The
files
relationship takes us toosfstorage
within which there is information on several file folders, including
R_Data
.and, within that directory, the files to download
The actual download link has a hexadecimal name but the information on what it should be named as a file is available in the attributes.
@oxinabox Can you tell me if you think this would fit in with the
DataDepsGenerators
scheme and, if so, where I should start?