Smartgambler
Pro-Punter

Go Back   OZmium Sports Betting and Horse Racing Forums > Public Forums > General Topics
User Name
Password
Register FAQ Search Today's Posts Mark all topics as read

To advertise on these
forums, e-mail us.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st May 2011, 02:09 PM
jazzy jazzy is offline
Member
 
Join Date: Nov 2010
Posts: 49
Default 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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



All times are GMT +10. The time now is 07:34 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2008 OZmium Pty. Ltd. All rights reserved . ACN 091184655