Sukhi
Sukhi

Reputation: 846

Downloading a research paper using command line/terminal

Is there any way to download a research paper using command line. I don't have access from home but I can login to my department's server, which is in intranet. So, ideally I should be able to do it, but I am not aware how to get a direct link to the pdf and then wget it or may be we can curl or lynx the paper webpage in remote server and have a pattern match or manual search for the link.

May be someone has already done it. Example paper : http://www.nature.com/nprot/journal/v7/n3/full/nprot.2012.016.html

Thanks

Upvotes: 7

Views: 4660

Answers (3)

Jyotika
Jyotika

Reputation: 87

I had the same problem. I tried something like (for your example link )

wget http://www.nature.com/nprot/journal/v7/n3/pdf/nprot.2012.016.pdf

And it works for me.

Upvotes: 0

Anonymous
Anonymous

Reputation: 51

It seems that some publishers block the Wget user agent. You can change this using the --user-agent option. For example

wget --user-agent TryToStopMeFromUsingWgetNow publisher.com/paper.pdf

Upvotes: 5

Gabe
Gabe

Reputation: 1296

From what I gather the article is for subscribers only and only authenticated users have access to it.

Ideally you should be able to get the URL after access, but that doesn't mean you will be able to wget it. Sorry I can't be of better use, but I don't have a Nature subscription.

Upvotes: 0

Related Questions