You are not logged in.

#1 2008-06-13 12:46:01

tony5429
Member
Registered: 2006-03-28
Posts: 861
Website

[SOLVED] How to use Wget

I am trying to use wget to copy the contents of this page: http://aprs.fi/?call=N1ZK&c=raw

To my hard drive. I am trying this...

wget http://aprs.fi/?call=N1ZK&c=raw

However, what is showing up on my hard drive never matches the source I see if I access that myself in firefox and click on 'view source'. Can anyone help me? If anyone is able to get the correct file on his/her computer, please let me know. Thanks!

Last edited by tony5429 (2008-06-13 13:05:34)


Yellowcot: A free, lightweight, open-source, cross-platform, Qt-based multimedia flash card simulator.

Offline

#2 2008-06-13 12:49:22

tony5429
Member
Registered: 2006-03-28
Posts: 861
Website

Re: [SOLVED] How to use Wget

I know wget has problems with ampersands but I tried...

wget 'http://aprs.fi/?call=N1ZK&c=raw'

And I have problems with that also...


Yellowcot: A free, lightweight, open-source, cross-platform, Qt-based multimedia flash card simulator.

Offline

#3 2008-06-13 12:57:24

sniffles
Member
Registered: 2008-01-23
Posts: 275

Re: [SOLVED] How to use Wget

Try double quotes. Works fine over here, and I doubt it's because >>wget<< has trouble with & but rather because of your shell's interpretation of "&".

Offline

#4 2008-06-13 13:01:20

tony5429
Member
Registered: 2006-03-28
Posts: 861
Website

Re: [SOLVED] How to use Wget

Just tried double quotes and had no luck... In every case, it looks like it is working, but if I compare it with the source Firefox sees, I find it is quite different. I think if you're running into the same problem, you'll see the file wget produces always has the title set to "Login - Google Maps APRS". But if you access that URL in Firefox, you should see a title of "Raw packets of N1ZK - Google Maps APRS." Do you have that discrepancy too or is yours matching?


Yellowcot: A free, lightweight, open-source, cross-platform, Qt-based multimedia flash card simulator.

Offline

#5 2008-06-13 13:03:12

tony5429
Member
Registered: 2006-03-28
Posts: 861
Website

Re: [SOLVED] How to use Wget

Oh wow; this is what I get for staying up all night working on this project. I see now that you have to log in to see the actual page. Do you know how I could do that in command line?


Yellowcot: A free, lightweight, open-source, cross-platform, Qt-based multimedia flash card simulator.

Offline

#6 2008-06-13 13:05:18

tony5429
Member
Registered: 2006-03-28
Posts: 861
Website

Re: [SOLVED] How to use Wget

Just figured it out. To login, I must pass a "nick" variable through the URL. Haha - thanks for your help.


Yellowcot: A free, lightweight, open-source, cross-platform, Qt-based multimedia flash card simulator.

Offline

Board footer

Powered by FluxBB