Created
June 12, 2012 01:39
-
-
Save kurosuke/2913878 to your computer and use it in GitHub Desktop.
get Tokyo weather image file(png)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# yahoo weather | |
# | |
# weather image | |
URL=`curl --silent "http://weather.yahoo.com/japan/tokyo-prefecture/tokyo-1118370/" | \ | |
grep background:url | sed -e "s/.*background:url('//" -e 's/png.*/png/' | grep -v partner-logo` | |
curl --silent -o /tmp/weather.png $URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment