Quote:
Originally Posted by Manoel
Oh, how I understand you!
I'm working on a MATLAB version since last night and the math is all working IF you input the data (copy from FIRST to Excel then to MATLAB, really easy but cumbersome). Coding to parse the results from FIRST's website is going to take the full weekend, I believe.
|
That depends on how flexible you want your parsing to be. I spent 2 hours trying to write an uber-XML parser with MSXML, then I gave up and spent about half an hour hacking together the one that I use now. All of FIRST's score pages from mid-2008 onwards are generated from the same application, and have identical formatting. I just read one line at a time and looked for the text that always preceded a team score. It works well enough for me, though it'll need an update if they ever change their match results page style.
Better idea, if you're not already committed to scraping from FIRST: scrape from TBA - they use the same style for all events, all years. Your program would be able to run OPRs all the way back to 2006.
Edit: Speaking of parsing, I notice that the prediction code doesn't work with a regional underway. I'll have to look at that tonight (I wasn't able to properly test it since all regionals were done when I initially wrote that feature).