Giter Club home page Giter Club logo

fantasy-points's Introduction

fantasy-points

this script pulls data from Yahoo's Fantasy sports API and stores it in an excel sheet

You need Python 3.7 to run this code. It will not work with Python 2.X

This script uses the python wrapper Yffpy to pull data from Yahoo Fantasy Sports.

Setting up an APP to get a Consumer Key and Secret (from Yffpy's guide)

Log in to a Yahoo account with access to whatever fantasy football leagues from which you wish to retrieve data.
Go to https://developer.yahoo.com/apps/create/ and create an app (you must be logged into your Yahoo account as stated above). For the app, select the following options:
    Application Name (Required): yffpy (you can name your app whatever you want, but this is just an example).
    Application Type (Required): select the Installed Application radio button.
    Description (Optional): you may write a short description of what the app does.
    Home Page URL (Optional): if you have a web address related to your app you may add it here.
    Redirect URI(s) (Required): this field must contain a valid redirect address, so you can use localhost:8080
    API Permissions (Required): check the Fantasy Sports checkbox. You can leave the Read option selected (appears in an accordion expansion underneath the Fantasy Sports checkbox once you select it).
    Click the Create App button.
    Once the app is created, it should redirect you to a page for your app, which will show both a Client ID and a Client Secret.
    Make a copy of examples/EXAMPLE-private.json, rename it to just private.json, and copy the Client ID and Client Secret values to their respective fields (make sure the strings are wrapped regular quotes (""), NOT formatted quotes (“”)). The path to this file will be needed to point YFFPY to your credentials.
    Now you should be ready to initialize the OAuth2 connection between YFFPY your Yahoo account.

Packages

The following packages are used in my code:

import yffpy
from yffpy.query import YahooFantasyFootballQuery
import json
import openpyxl
from datetime import date

fantasy-points's People

Contributors

shafquat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.