[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: [OT] Grabbing the lottery results
On Tuesday 07 October 2003 20:02, Justin wrote:
> Here is a HomeSeer script. It's not very elegant, but it works!
My word, that is a big script.
Here's my little effort, which downloads all the lottery results for each
t=
ype=20
of lotto draw and sticks 'em in CSV files:
#--------------------CUT HERE--------------------------
#!/bin/bash
for file in Lotto Extra Thunderball HotPicks DailyPlay;=20
do wget $@ http://www.national-lottery.co.uk/player/files/$file.csv;
done
#--------------------CUT HERE--------------------------
Save the 3 line script as lottery.sh=20
chmod a+x lottery.sh
run with ./lottery.sh
Give it an option -q to turn off the progress bars
(In fact, it supports nearly all the options wget does! :-)
cheers
ant
--=20
/\/\
www.ant.org ('') www.ant.org
()
Megawatt Winged Avenger
Home |
Main Index |
Thread Index
|