-
Notifications
You must be signed in to change notification settings - Fork 27
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
Preprint search #38
Comments
hi @chartgerink - glad to see you're adding it here. It looks like a bit of a hot mess like all publishers. I didn't see this URL in the Datacite record. Do you get a full text URL via OSF API? e.g., for https://eartharxiv.org/fsvmw/
then a whole bunch of redirects before finally getting the PDF
|
@sckott The OSF API requires a lot of nested requests, it seems to me (although embedded requests seem to be available to reduce this). With the OSF API I get to the file with two requests (note the dependency on URI=`curl https://api.osf.io/v2/preprints/fsvmw/ | jq '.["data"]["relationships"]["primary_file"]["links"]["related"]["href"]' | sed 's/"//g'`
["href"]'
curl $URI | jq '.["data"]["links"]["download"]' * |
nice, wish it was easier than that. Hopefully it's consistent across the various preprint entities they have :) |
A tweet suggested to add preprint search in the
fulltext
package, which might also perfectly fit here.@sckott, would you consider it preferable to add it here or in
fulltext
? I am planning (and have been for too long...) to submit this package to rOpenSci for review anyway when it's somewhat more fleshed out, so would value your input to prevent redundancy.The text was updated successfully, but these errors were encountered: