|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: FIRST Event Data in XML format
Quote:
Yes FIRST would make all of our lives simpler if they would find a standard and stick to it. Either let us have an API we can make calls to (Published well before kickoff) or at least have a standardized page layout and don't change it without warning us and telling us about the changes. One of the additional reasons for this project is that we have a STANDARD way of accessing data. If anyone would like to offer assistance feel free to shoot me a PM. |
|
#2
|
|||||
|
|||||
|
Re: FIRST Event Data in XML format
Quote:
|
|
#3
|
|||
|
|||
|
Re: FIRST Event Data in XML format
Nate, I was just grumbling. Im already providing XML information for a couple of the pages and am working on the others.
As an update: http://schreiaj.ath.cx/share/FRC_Par...alschedule.php will provide the qualification schedules for the regionals that are not bizarre. http://schreiaj.ath.cx/share/FRC_Parsers/ranking.php will provide the qualification ranking data. Both pages take the following options: Event_Code - Event Code from frclinks.com. Since I now use frclinks to find the pages the exact codes given on there are what need to be used. Year - 2008, 2009 are currently supported. HTML_Display [true,false] - This decides whether to escape the tags so that they display in the browser. If you are parsing the xml in a script I would suggest leaving this false (or blank). If you plan on copying and pasting the xml anywhere from the browser use true. Currently I am working on parsing the team history pages and will post that as soon as I am done. |
|
#4
|
|||||
|
|||||
|
Re: FIRST Event Data in XML format
Quote:
|
|
#5
|
|||
|
|||
|
Re: FIRST Event Data in XML format
Quote:
Don't get me started on Word and HTML On an unrelated note, in the spirit of open source all the code is available http://schreiaj.ath.cx/share/FRC_Parsers/ and the current versions I am working on at the moment are at http://schreiaj.ath.cx/share/FRC_Parsers/Parsers_Beta/ |
|
#6
|
|||
|
|||
|
Re: FIRST Event Data in XML format
Where did you find frclinks.com? That's a nifty idea.
I don't know how well one parsing method works against others, a regex will work as long as they don't add a new table to the document, and don't add non-numerical data. Likewise, an HTML parser will, and will also properly handle entities like < , but any change in structure will not work (though that is a simple parameter change telling it the new path to the data). I just use the DOM and SimpleXML parsers in PHP, Python (eewww, Python) must have something similar. I have an initiative to standardize how FIRST data is published, XML Interchange format. An example that mixes the rankings and schedule: Code:
<event season="2009" code="GLR">
<team number="67" game:rank="1" game:win="12" game:lost="0" game:tie="0" game:plays="0" game:qs="24.00" game:rs="51.75" game:mp="117" />
...
<match type="qualification" number="1" time="11:45">
<alliance name="red">
<team position="1" number="1940"/>
<team position="2" number="216"/>
<team position="3" number="123"/>
</alliance>
<alliance name="blue">
<team position="1" number="1896"/>
<team position="2" number="468"/>
<team position="3" number="894"/>
</alliance>
</match>
...
</event>
As for licensing, as a rule of thumb, if the code is shorter then the license would be, I put it in public domain. Last edited by Nibbles : 03-05-2009 at 04:37. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| XML Interchange format | Nibbles | Scouting | 25 | 03-10-2008 02:09 |
| How to write image data to binary PGM file format(P5)? | tommy_chai | Programming | 0 | 08-10-2007 08:22 |
| Scouting Data Interchange Format | proegssilb | Scouting | 7 | 06-06-2007 19:29 |
| White Paper Discuss: Karthik's Championship Event Data | CD47-Bot | Extra Discussion | 20 | 13-04-2004 08:17 |
| XML of the FIRST Q & A system | Jack | Website Design/Showcase | 11 | 16-01-2004 23:24 |