1st May 2011, 02:09 PM
|
Member
|
|
Join Date: Nov 2010
Posts: 49
|
|
neat little python script :)
I got tired of having to change the url to go to unitab's raceday page, so I automated it
Code:
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
|