PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > wget for downloading scientific papers
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

wget for downloading scientific papers

Réponse
 
LinkBack Outils de la discussion
Vieux 01/11/2007, 15h32   #1
Jonas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut wget for downloading scientific papers

Hi,

WHAT I WANT:
I would like to download scientific papers by using the program
"wget".

THE PROBLEM:
Scientific papers are usually protected via usernames and password.
>From the university I can download them, because the IP from the

university is registrated. When I am at home I can't download them.
Some how I have to tell wget that it shall tunnel to the university
and then download the paper.

The following is NOT what I want:
1) ssh-connection to the university
2) download the paper onto the computer at the university
3) copy the paper to my local hard drive via scp

I would like to do everything from my local computer using VNC (?) or
a proxy (?) via a script.

Unfortunetly I don't know why "http://www.quantenblog.net/physics/read-
articles" is not working for my.

e.g.:
How can I download the pdf of this paper "http://prola.aps.org/
abstract/PRL/v83/i13/p2541_1"
The pdf-file is located at "http://prola.aps.org/pdf/PRL/v83/i13/
p2541_1"


Cheers.
Jonas

  Réponse avec citation
Vieux 01/11/2007, 15h55   #2
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wget for downloading scientific papers

On 2007-11-01, Jonas <jonasmetz@googlemail.com> wrote:
> Hi,
>
> WHAT I WANT:
> I would like to download scientific papers by using the program
> "wget".
>
> THE PROBLEM:
> Scientific papers are usually protected via usernames and password.
>>From the university I can download them, because the IP from the

> university is registrated. When I am at home I can't download them.
> Some how I have to tell wget that it shall tunnel to the university
> and then download the paper.
>

You can't get the papers with http://user:password@hostname/... ?
You are looking for a way to automate getting these files; can you get
them manually using Firefox or another browser?

  Réponse avec citation
Vieux 01/11/2007, 16h30   #3
jellybean stonerfish
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wget for downloading scientific papers

On Thu, 01 Nov 2007 07:32:59 -0700, Jonas wrote:

> Hi,
>
> WHAT I WANT:
> I would like to download scientific papers by using the program
> "wget".
>
> THE PROBLEM:
> Scientific papers are usually protected via usernames and password.


Have you read the wget manpage? 'man wget'

From the wget manpage


--user=user
--password=password
Specify the username user and password password for both FTP and
HTTP file retrieval. These parameters can be overridden using the
--ftp-user and --ftp-password options for FTP connections and the
--http-user and --http-password options for HTTP connections.


stonerfish
  Réponse avec citation
Vieux 01/11/2007, 17h32   #4
Jonas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wget for downloading scientific papers

On 1 Nov., 15:55, Bill Marcum <marcumb...@bellsouth.net> wrote:
> On 2007-11-01, Jonas <jonasm...@googlemail.com> wrote:> Hi,
>
> > WHAT I WANT:
> > I would like to download scientific papers by using the program
> > "wget".

>
> > THE PROBLEM:
> > Scientific papers are usually protected via usernames and password.
> >>From the university I can download them, because the IP from the

> > university is registrated. When I am at home I can't download them.
> > Some how I have to tell wget that it shall tunnel to the university
> > and then download the paper.

>
> You can't get the papers withhttp://user:password@hostname/... ?
> You are looking for a way to automate getting these files; can you get
> them manually using Firefox or another browser?


Thank you for the suggestion, but this will not work out, because I
don't know the password. When I use my account at the university I
don't have to enter a username or a password, because the university
IP is registered and I am automatically forwarded. So what I have to
do is to change my IP-address when I am at home, to the one which I
have when I am at the university.

This could be done with a proxy-server and a browser (like firefox),
but that is not the solution to my problem:
I want to use wget, because I wrote a script, which does not only
download the pdf-file, but many other useful information as well
(BibTex, I am allowed to enter doi-number, ...). So I would like to
use this script to get the complete information. Therefore I need to
find a way to use a tunnel through the university.

Jonas

  Réponse avec citation
Vieux 01/11/2007, 17h46   #5
Jonas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wget for downloading scientific papers

On 1 Nov., 16:30, jellybean stonerfish <stonerf...@geocities.com>
wrote:
> On Thu, 01 Nov 2007 07:32:59 -0700, Jonas wrote:
> > Hi,

>
> > WHAT I WANT:
> > I would like to download scientific papers by using the program
> > "wget".

>
> > THE PROBLEM:
> > Scientific papers are usually protected via usernames and password.

>
> Have you read the wget manpage? 'man wget'
>
> From the wget manpage
>
> --user=user
> --password=password
> Specify the username user and password password for both FTP and
> HTTP file retrieval. These parameters can be overridden using the
> --ftp-user and --ftp-password options for FTP connections and the
> --http-user and --http-password options for HTTP connections.
>
> stonerfish


I don't know the username and the password. When I am at the
university I don't have to enter them, because the IP-address is
registered and therefore I am automatically forwared/allowed to
download the file.

I could use a proxy and a browser, but that is not the solution I am
looking for. I would like to use wget, because I wrote a script, which
downloads not only the pdf-file, but lots of other information as
well. The script is pretty handy and therefore I would like to tunnel
through my university account using an ssh-connection (?).

Jonas

PS: Yes I read the man-page of wget and found as well the option "--
proxy-server=on". But I could not download the file -- might be that I
am not using the right options. So it would be very nice of you, if
you could write the command which is working for you.

  Réponse avec citation
Vieux 01/11/2007, 18h43   #6
Jan Schampera
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wget for downloading scientific papers

Jonas wrote:

> I don't know the username and the password. When I am at the
> university I don't have to enter them, because the IP-address is
> registered and therefore I am automatically forwared/allowed to
> download the file.


I'd say it's time to contact your admins.

J.
  Réponse avec citation
Vieux 01/11/2007, 18h51   #7
jellybean stonerfish
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wget for downloading scientific papers..possible solution

On Thu, 01 Nov 2007 09:46:15 -0700, Jonas wrote:


>
> PS: Yes I read the man-page of wget and found as well the option "--
> proxy-server=on". But I could not download the file -- might be that I
> am not using the right options.


I hope I didn't offend. I assumed you didn't have a clue. Very rude of
me. Now that I know you have some skill I have a better solution at
bottom of post.

> So it would be very nice of you, if
> you could write the command which is working for you.


I didn't get it to work. I thought you had a password.

Maybe you could automate it from home with a script, and still use your
schools computer? You don't need to save the file on your schools
computer, but pass it straight through? Something like this may work..

ssh username@school wget --output-document=- \
http://prola.aps.org/pdf/PRL/v83/i13/p2541_1 > filename.pdf

This will ssh you into school, and run the given command in the sshell.
--output-document=- tells wget to save the file to standard output.
You direct your standard out to filename.pdf.


This could be put in a script.....


stonerfish
  Réponse avec citation
Vieux 01/11/2007, 19h00   #8
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wget for downloading scientific papers

On 2007-11-01, Jonas <jonasmetz@googlemail.com> wrote:
> On 1 Nov., 15:55, Bill Marcum <marcumb...@bellsouth.net> wrote:
>> On 2007-11-01, Jonas <jonasm...@googlemail.com> wrote:> Hi,
>>
>> > WHAT I WANT:
>> > I would like to download scientific papers by using the program
>> > "wget".

>>
>> > THE PROBLEM:
>> > Scientific papers are usually protected via usernames and password.
>> >>From the university I can download them, because the IP from the
>> > university is registrated. When I am at home I can't download them.
>> > Some how I have to tell wget that it shall tunnel to the university
>> > and then download the paper.

>>
>> You can't get the papers withhttp://user:password@hostname/... ?
>> You are looking for a way to automate getting these files; can you get
>> them manually using Firefox or another browser?

>
> Thank you for the suggestion, but this will not work out, because I
> don't know the password. When I use my account at the university I
> don't have to enter a username or a password, because the university
> IP is registered and I am automatically forwarded. So what I have to
> do is to change my IP-address when I am at home, to the one which I
> have when I am at the university.
>
> This could be done with a proxy-server and a browser (like firefox),
> but that is not the solution to my problem:
> I want to use wget, because I wrote a script, which does not only
> download the pdf-file, but many other useful information as well
> (BibTex, I am allowed to enter doi-number, ...). So I would like to
> use this script to get the complete information. Therefore I need to
> find a way to use a tunnel through the university.
>

I'm not sure this is possible unless you can arrange for the university
to give you a password or register your home IP, or use the solution
that you rejected in the original post.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h35.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16271 seconds with 16 queries