|
|
To advertise on these forums, e-mail us. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
Python: get_rands.zip from jazzy
Quote:
Does anyone know if this get_rands script from jazzy still works or am I not using python properly? |
#2
|
|||
|
|||
It worked the last time i used it Toil, in early Jan
you need those downloads he suggests |
#3
|
|||
|
|||
Is your wife a..."goer"... eh? Know what I mean? Know what I mean? Nudge nudge. Wink wink! Know what I mean? Say no more...Know what I mean?
A nod's as good as a wink to a blind bat, eh?. The python were pretty funny.
__________________
Never give up on a dream just because of the time it will take to accomplish it. The time will pass anyway.” ― Earl Nightingale Last edited by The Ocho : 27th March 2012 at 03:28 PM. |
#4
|
|||
|
|||
Thanks Raven, I'll play around with it a bit more.
|
#5
|
|||
|
|||
G'day Toil,
I've since moved on to Python 3 so although installed, Python27 isn't on my system's path anymore. I just tested the script, and it got all the pages OK, but fell over when creating the excel sheet. Something to do with the path. If you really want me to, I'll have a go at fixing it... What happens when you run it? |
#6
|
|||
|
|||
Hi Jazzy, thanks for replying. I'm using PythonWin 2.7.2(pywin32 build 217) I click open file and open get_rands and then all I see is the code. import urllib2, re, datetime, win32com.client, sys, os.path, decimal usragent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5; .NET CLR 2.0.50727; ffco7) Gecko/2008120122 Firefox/3.0.5" xlpath = "%s\\%s" % (os.path.dirname(sys.argv[0]) , "rands.xlsx") tooday = datetime.date.today() tomorrow = tooday+datetime.timedelta(days=1) #href="meeting.asp?meeting=13493"> Cowra match_mtgs = re.compile("href=\"meeting.asp\?meeting=(\d+)\"> (.*?)") match_races = re.compile(" #>Race 1 13:15 (local) 13:15 |
Thread Tools | Search this Thread |
Display Modes | |
|
|