Jul 062010
 

I liked the idea of YQL – and thought I’d apply it to some sports sites I am familiar with.

Starting with baseball, which is in season.

First, a query for today’s games, with the status of each game.  Hopefully self documenting XML – if there was ever a time to be verbose…

Then some queries for Player IDs and Team IDs to go along with the IDs that are peppered into the results from the game status.  Though the IDs don’t change, they do grow over time (as we learn about lineups or players are substituted into the game).  The players returned in that call are only the players that are active today.  So typically you’ll get the TeamIDs once a season.  Then periodically refresh the game status.  And if you ever find a playerID that isn’t already known, make a call to get a refreshed list of playerIDs.

Oh – and those calls include some player and team stats as well – in case you’re interested in that.  Again though, only for players active today.

NFL’s up next…then the NBA and NHL as they roll into season.

I’m trying to get it into the YQL-Tables…we’ll see how successful my git is.

I imagine I’ll just update this page as needed over time.

  2 Responses to “Sports YQL – MLB to start with.”

  1. You aren’t working hard enough if you have time to play with YQL.

  2. It was all done at my previous job. Except the learning GIT part. Couldn’t get it installed on Windows for some convoluted ssh reason. Mac OS X? Like a charm.

    Kool-aid anyone?

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)