Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wget
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3488
Location: Berlin

PostPosted: Sat Jul 09, 2005 10:25 am    Post subject: wget Reply with quote

Hallo
Kann mir jemand sagen, wie ich mit wget Daten aus Webseiten herausfiltern kann.
Beispiel:
Code:

wget -t 2 -T 5 -q -O- -U "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" http://www.met.fu-berlin.de/de/wetter/ | grep ...Lufttemperatur: rel. Luftfeuchte: u.ä.?
Back to top
View user's profile Send private message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3495

PostPosted: Sat Jul 09, 2005 10:50 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-209221.html ist vielleicht ein erster Ansatz...
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3488
Location: Berlin

PostPosted: Sun Jul 10, 2005 7:39 am    Post subject: Reply with quote

z.Z. habe ich das so gemacht:
Code:

.torsmorc
......
${color white}Temperatur:${color red} ${execi 1800 /home/olaf/eigene_Starter/wetter} °C

/home/olaf/eigene_Starter/wetter
Code:

#!/bin/bash
lynx --dump  http://www.met.fu-berlin.de/de/wetter/ | grep "Lufttemperatur:*"  | cut -d ' ' -f5 | cat >> /tmp/wetter
cat /tmp/wetter
rm -rf /tmp/wetter

Dann lasse ich das über cron jede Stunde einmal ausführen.
Muß mich bloß mal mit cron beschäftigen. Habe das jetzt mit kcron gemacht. Aber das scheint nicht zu funktionieren.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum