OZmium Sports Betting and Horse Racing Forums

OZmium Sports Betting and Horse Racing Forums (http://forums.ozmium.com.au/index.php)
-   General Topics (http://forums.ozmium.com.au/forumdisplay.php?f=59)
-   -   neat little python script :) (http://forums.ozmium.com.au/showthread.php?t=21495)

jazzy 1st May 2011 03:09 PM

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 :)


All times are GMT +10. The time now is 02:18 PM.

Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.