civilcalc Posted June 19, 2006 Share Posted June 19, 2006 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.dothanks in advancedavid Link to comment Share on other sites More sharing options...
nfwu Posted June 20, 2006 Share Posted June 20, 2006 (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 June 20, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
civilcalc Posted June 20, 2006 Author Share Posted June 20, 2006 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? Link to comment Share on other sites More sharing options...
nfwu Posted June 20, 2006 Share Posted June 20, 2006 out of my depth nowOops... I was assuming that you knew Transitional HTML.What is in the address bar of the window when you access that webpage?#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
civilcalc Posted June 20, 2006 Author Share Posted June 20, 2006 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 ??? Link to comment Share on other sites More sharing options...
johna007 Posted June 20, 2006 Share Posted June 20, 2006 You could try to use the Betfair FreeAPI ? johna007 Link to comment Share on other sites More sharing options...
civilcalc Posted June 20, 2006 Author Share Posted June 20, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now