in reply to Re: Weather RSS image
in thread Weather RSS image
Also, instead of get() and open/print/close, can just use LWP::Simple's getstore() method:for n in `seq 0 99` ; do wget http://us.i1.yimg.com/us.yimg.com/i/us +/we/52/$n.gif ; done
or just:use LWP::Simple; use strict; use warnings; for my $index (0 .. 99) {# actually 47 is the last index print "downloading $index.gif\n"; my $res = getstore("http://us.i1.yimg.com/us.yimg.com/i/us/we/52/$ +index.gif", "weather$index.gif"); }
perl -MLWP::Simple -e 'getstore("http://us.i1.yimg.com/us.yimg.com/i/u +s/we/52/$_.gif", "weather$_.gif") for 0 .. 99'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Weather RSS image
by pg (Canon) on Nov 09, 2005 at 22:07 UTC | |
by ikegami (Patriarch) on Nov 09, 2005 at 22:14 UTC | |
by davidrw (Prior) on Nov 09, 2005 at 22:54 UTC |