LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2008, 07:42 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
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

Last edited by frenchn00b; 03-01-2008 at 07:45 AM.
 
Old 03-01-2008, 11:53 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
 
Old 03-02-2008, 12:44 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by frenchn00b View Post
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.
 
Old 03-02-2008, 06:11 AM   #4
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735

Rep: Reputation: 76
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
 
Old 03-02-2008, 02:10 PM   #5
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 78

Rep: Reputation: 15
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.
 
Old 04-10-2009, 01:16 PM   #6
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by frenchn00b View Post
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)!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 2008 Security Forecast: 'Least Privilege' Engineering Will Gain Momentum LXer Syndicated Linux News 0 01-09-2008 11:10 AM
LXer: Sunny forecast for Linux kernel predictions LXer Syndicated Linux News 0 08-16-2007 07:50 AM
LXer: Linux weather forecast to track projects LXer Syndicated Linux News 0 08-16-2007 06:00 AM
Desktop weather forecast. eXcluster Linux - Software 2 02-06-2005 01:30 PM
kernel 2.6 forecast demmylls Linux - General 1 11-19-2003 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration