almartin82 / projprep

a R package that helps read, clean up, and convert baseball projection data into auction prices.
7 stars 1 forks source link

get position eligibility from the yahoo api #41

Open almartin82 opened 8 years ago

almartin82 commented 8 years ago

per issue #15 (last issue to close for projprep 0.3!), it's important to get positional eligibility right. because I am loathe to do anything manually when it is scriptable, let's pull these down from from the yahoo API.

this seems simple enough - player status is select * from fantasysports.players where game_key = 357 using yahoo's query language, and that can be wrapped into a RESTful call by hitting https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20fantasysports.games%20where%20game_key%3D%22357%22&format=json&diagnostics=true&callback=

roughly:

almartin82 commented 8 years ago

hmm, but you have to be signed in, and the yahoo apis now only support 2 legged oauth...