Sign in to follow this  
Followers 0
civilcalc

Inet Posting

7 posts in this topic

Ok,

I have been dabbling in extracting data from a website called www.betfair.com so far so good, I can extract all the data I need.

But I want to transmit data to the site. Using a Http analyser I have intercepted the following code when I try to place a bet using the website.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Betfair - online sports betting exchange, bet on football & horse racing fixed odds</title>

<script language="Javascript">

var place = parent.parent.main;

place.interface_compareVersions("V6.3.0-8");

// function returnBetMessage(){

var oBetResults = new place.m_BPRC();

var oBets = new place.m_BC();

var oRunner = place.m_R(7758878,22,4869366,'Spain',1,false, null, null, null, null, null, null, null, null, null, null, null, null,null,null,null,null);

var oBet = place.make_placedBet(null,4.3,100.0,'B',oRunner);

place.m_ABTBC(oBet, oBets);//oBets.add(oBet);

var oBetResult = place.make_betResult(false,'EXCEEDED_EXPOSURE_OR_AVAILABLE_TO_BET_BALANCE','Account Exceeded Exposure Limit or Available to Bet Balance.',null,0.0,0.0);

place.m_ABTBC(oBetResult, oBetResults);

place.interface_setBetPlacementResults(oBets, oBetResults);

place.interface_setBetPlacementAttibutes();

// }

// returnBetMessage();

</script>

</head>

<body>

</body>

</html>

The lines var oRunner and var oBet are the ones that I think i need, but how do i send this data to the site??

The target is http://www.betfair.com/betting/BetsManipulationAction.do

thanks in advance

david

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This page is a frame embedded in a frame embedded in a frame. We need the this frame's parent's parent's source before being able to help you.

#)

Edited by nfwu

Share this post


Link to post
Share on other sites

This page is a frame embedded in a frame embedded in a frame. We need the this frame's parent's parent's source before being able to help you.

#)

ok, i well out of my depth now, how do i find the source of the parent window?

Share this post


Link to post
Share on other sites

out of my depth now

Oops... I was assuming that you knew Transitional HTML.

What is in the address bar of the window when you access that webpage?

#)

Share this post


Link to post
Share on other sites

Oops... I was assuming that you knew Transitional HTML.

What is in the address bar of the window when you access that webpage?

#)

It just always says www.betfair.com ???

Share this post


Link to post
Share on other sites

You could try to use the Betfair FreeAPI ?

johna007

Share this post


Link to post
Share on other sites

I would but I am fairly new to programming, and the api is way above me, i can just about use autoit to do what i want. the api looks very difficult for a complete novice.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0