-
-
Save armish/8693f1afbc80a7e6d503 to your computer and use it in GitHub Desktop.
bioRxiv DOI scraper
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
#!/bin/bash | |
for i in {0..7000} | |
do | |
URL=`printf "http://dx.doi.org/10.1101/%06d" $i` | |
code=`curl -L -o /dev/null --silent --head --write-out '%{http_code}\n' "${URL}"` | |
echo -e "$URL\t$code" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment