Created
August 9, 2017 01:30
-
-
Save max-mapper/322864dfe13dfa5e377fade1c96891af to your computer and use it in GitHub Desktop.
get all DOIs on DataCite
This file contains 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
npm install gunzip-maybe xml-json jsonfilter nugget -g | |
curl "https://search.datacite.org/sitemaps/sitemap.xml.gz" | gunzip-maybe | xml-json sitemapindex | jsonfilter sitemap.*.loc | xargs nugget -d datacite | |
ls datacite | xargs -I {} sh -c "cat datacite/{} | gunzip-maybe | xml-json urlset | jsonfilter url.*.loc | grep works" >> urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment