This program is currently being developed as the interface between a predictive baseball program and the Yahoo Fantasy Sports API. As I started my predictive analytics program I found that there wasn't an easy way to get the fantasy baseball data from my current league into a format I could play with, without hitting the API repeatedly.
The current functionality pulls down standings, roster and roster stats from Yahoo.
Currently Required Modules:
- requests (https://github.com/kennethreitz/requests)
- requests-oauth (https://github.com/maraujop/requests-oauth)
- beautifulsoup (http://www.crummy.com/software/BeautifulSoup/)
-
Go to developer.yahoo.com and create a project. It's a desktop project. Get the client key and client secret.
-
Fill out the client_secrets.json file with the client key and client secret provided by Yahoo
-
Run y_main.py from the terminal. Follow the instructions.
-
The program results in three text files and a database with the data parsed into it.
Importing data into sqlite database for modifying later, setting ordering variables, etc.