jazzy
1st May 2011, 02:09 PM
I got tired of having to change the url to go to unitab's raceday page, so I automated it
import datetime, os
tooday = datetime.date.today()
os.system("start http://unitab.com/racing/%i-%i-%i/raceday.html" % (tooday.year, tooday.month, tooday.day))
This is as simple as scripts get - it simply gets today's date and creates the string "http://unitab.com/racing/2011-5-1/raceDay.html" (for the 1st May) and starts the browser...
I like Python :)
import datetime, os
tooday = datetime.date.today()
os.system("start http://unitab.com/racing/%i-%i-%i/raceday.html" % (tooday.year, tooday.month, tooday.day))
This is as simple as scripts get - it simply gets today's date and creates the string "http://unitab.com/racing/2011-5-1/raceDay.html" (for the 1st May) and starts the browser...
I like Python :)