Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- URL1='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=1'
- URL2='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=2'
- URL3='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=3'
- URL4='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=4'
- URL5='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=5'
- wget -q -O- "$URL1" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print "Heute " $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >/var/tmp/weather.cur
- wget -q -O- "$URL2" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >>/var/tmp/weather.cur
- wget -q -O- "$URL3" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >>/var/tmp/weather.cur
- wget -q -O- "$URL4" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >>/var/tmp/weather.cur
- wget -q -O- "$URL5" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >>/var/tmp/weather.cur
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement