XML feeds parsing

Pågår Lagt ut Oct 11, 2006 Betales ved levering
Pågår Betales ved levering

I run a website where I receive sports betting odds data from many different online sportsbooks. Each sportsbook uses a different format in their XML feed.

I am looking for a PHP script that can be EASILY configured to parse various XML feeds with wildly varying structures. The product available at [url removed, login to view] comes close but does not fully work for this project. The idea is to be able to quickly add new sportsbooks to our database of information with an interoperable and easily configurable XML parsing script.

The script does not need to work in real time as the parsed data will be inserted into a MySQL database. The script need not insert the data. It should merely prepare the data by creating php objects for each match within the XML feed.

The interoperable aspect to this script is hugely important. We want our developers to be able to use this script in the future in a very timely manner to add or update our XML parsing abilities.

We will be happy to work closely with the coder since we already have experience parsing these feeds. Feel free to contact with questions.

Objects

The objects needed to be parsed from the XML are indicated below. Descriptions provided where needed.

event_gmt - insert UNIX gmt

league

home_team

moneyline_home_team – home team outright victory odds

visiting_team

moneyline_visiting_team – visiting team outright victory odds

draw – draw odds

posted_total – number that divides the over and under bets

over_adjust – actual odds given on under bets

under_adjust – actual odds given on over bets

aline_1a – “Asian Handicap” for home team

aline_2a – “Asian Handicap” for visiting team

aodds_1a – actual odds considering handicap for home team

aodds_2a – actual odds considering handicap for visiting team

Sometimes sportsbooks offer up to three different Asian Handicap lines. In these instances, the script should deliver the information on each Asian Handicap. The second set of this information can be delivered with a “b” or “c” suffix such as:

aline_1b

aline_2b

aodds_1b

aodds_2b

Example XML feeds :

[url removed, login to view]

[url removed, login to view]

Databehandling PHP

Prosjekt-ID: #96874

Om prosjektet

6 bud Eksternt prosjekt Aktiv Oct 13, 2006