Skip to content

Instantly share code, notes, and snippets.

@blahah
Created January 19, 2016 19:25
Show Gist options
  • Save blahah/78f7a7f6f91a5ec5f49c to your computer and use it in GitHub Desktop.
Save blahah/78f7a7f6f91a5ec5f49c to your computer and use it in GitHub Desktop.
wget PDFs from sciencedirect.com (elsevier)
# with example PDF URL
PDF_URL"=http://www.sciencedirect.com/science/article/pii/S0191886909000877/pdfft\?md5\=25fb6461c7b1ebe114acb2cd5ab91ddd\&pid\=1-s2.0-S0191886909000877-main.pdf"
wget \
--header "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36" \
--verbose \
--save-cookies cookies.txt \
--keep-session-cookies \
$PDF_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment