COM server and Python

Please post any questions regarding the program here.

Moderator: 2020vision

COM server and Python

Postby gruss_player » Mon Apr 22, 2013 11:19 am

Hi,

I'm trying to get ba working with Python vai it's COM interface. This should be possible as python has a pretty good win32com.client library, you can for example read from excel very easily. I have no experience with VBA or C, so python is the easiest way for me to automate ba

So far I have the following

Code: Select all
ba = Dispatch ("BettingAssistantCom.Application.ComClass")   #Calls for ba

user_name = ba.getUserName

print user_name


Which correctly outputs my betfair user name

When I try to do a call for get Sports using

Code: Select all
sports = ba.getSports


I get

Code: Select all
(<COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMO .... etc.....
[/code]

I understand that this should return a list of sports and not an <unknown> value.
I've also tried ba.getSports(), which gives a python tuple (like a list) error...
Code: Select all
sports = ba.getSports()
TypeError: 'tuple' object is not callable



If anyone has any experience interfacing with the COM server and can offer advice that would be great.

Thanks,
gruss_player
 
Posts: 1
Joined: Mon Apr 22, 2013 11:03 am

Postby peleus » Tue Apr 23, 2013 11:43 pm

Looks like that's too technical of an issue but were you able to find someone to do this for you yet?
Nothing is coincidence. Image
peleus
 
Posts: 41
Joined: Tue Apr 23, 2013 11:41 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 28 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.