LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to wget like the weather/wind summary forecast ? (https://www.linuxquestions.org/questions/linux-software-2/how-to-wget-like-the-weather-wind-summary-forecast-624923/)

frenchn00b 03-01-2008 07:42 AM

How to wget like the weather/wind summary forecast ?
 
Hello,

I would like to get this from the website :
http://www.windfinder.com/forecast/aachen

just the part of the forecast, and not the publicity, ... and non useful text.

Is that possible ?
wget gives a non formatted view and with all of stuffs non useful

the print version has no cubes:wget http://www.windfinder.com/wind-cgi/f...TIONSNR=aachen

thanks

IBall 03-01-2008 11:53 PM

You should be able to use Wget.

Wget will dump the HTML code into the STDOUT, so write the output of wget into a file. Then use Perl or PHP to parse through the HTML code, dump any useless stuff and store the required information in variables. Then you can process the useful information as you want.

This is actually a bigger project than the 2 lines above ;)

frenchn00b 03-02-2008 12:44 AM

Quote:

Originally Posted by frenchn00b (Post 3074741)
Hello,

I would like to get this from the website :
http://www.windfinder.com/forecast/aachen

just the part of the forecast, and not the publicity, ... and non useful text.

Is that possible ?
wget gives a non formatted view and with all of stuffs non useful

the print version has no cubes:wget http://www.windfinder.com/wind-cgi/f...TIONSNR=aachen

thanks

It looks working with :

Code:

wget -k http://www.windfinder.com/forecast/aachen
I wonder why -k is not by default in the code of wget..
that s cool that we have lot of options with wget
it can suits all.

like bit mplayer, it even handles several layers.

makyo 03-02-2008 06:11 AM

Hi.

See also http://www.linuxquestions.org/questi...nx#post2467171 for a solution with lynx & sed, producing straight text (not marked-up text) ... cheers, makyo

distortedstar 03-02-2008 02:10 PM

This is a cool idea...I love tools like lynx. For while I had use a super old laptop as a work machine, and I actually used lynx and elinks2 as my main browser! It worked fairly well, actually. Once you get used to the keyboard shortcuts, it's awesome how fast you can browse.

frenchn00b 04-10-2009 01:16 PM

Quote:

Originally Posted by frenchn00b (Post 3074741)
Hello,

I would like to get this from the website :
http://www.windfinder.com/forecast/aachen

just the part of the forecast, and not the publicity, ... and non useful text.

Is that possible ?
wget gives a non formatted view and with all of stuffs non useful

the print version has no cubes:wget http://www.windfinder.com/wind-cgi/f...TIONSNR=aachen

thanks

weatherget is the famous package

Enjoy Dude (to me)!!


All times are GMT -5. The time now is 06:28 AM.