FF Keeper draft

I’ve finally successfully pulled *some* data from Yahoo’s servers. Behold, in all it’s glory:

<?xml version=”1.0″ encoding=”UTF-8″?>
<query xmlns:yahoo=”http://www.yahooapis.com/v1/base.rng&#8221; yahoo:count=”1″ yahoo:created=”2013-06-03T22:20:20Z” yahoo:lang=”en-US”><results><game xmlns=”http://fantasysports.yahooapis.com/fantasy/v2/base.rng”&gt;
<game_key>314</game_key>
<game_id>314</game_id>
<name>Football</name>
<code>nfl</code>
<type>full</type>
<url>http://football.fantasysports.yahoo.com/f1</url&gt;
<season>2013</season>
</game></results></query><!– total: 161 –>
<!– engine4.yql.ne1.yahoo.com –>

While it looks like gibberish it contains the identifying number of the current (2013) NFL season (314) which I’ve been looking for since… oh I don’t know… last year sometime. BUT I FOUND IT NOW. With that I can build requests to access player data for specific fantasy leagues.

But you may ask yourself, “Self, if all the players are available in all the same leagues why do you need stats specific to a fantasy league, aren’t they all in the NFL?”

Good questions, Self. I need player data specific to each fantasy league because that’ll contain their points totals for that league’s scoring system so I can properly populate player data for the offline draft.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: