Skip to content

Instantly share code, notes, and snippets.

@armish
Created July 7, 2014 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armish/8693f1afbc80a7e6d503 to your computer and use it in GitHub Desktop.
Save armish/8693f1afbc80a7e6d503 to your computer and use it in GitHub Desktop.
bioRxiv DOI scraper
#!/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