Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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