|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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? |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|