Code Monkey home page Code Monkey logo

draftkings_client's Introduction

DraftKings Python Client

Build Status codecov PyPI

Introduction

DraftKings does not have a public API with documentation.

However, one can identify network API calls to fetch data from DraftKings - data like NFL contests, or players available for a "Draft Group" (e.g. all NBA games starting at 7 PM EST tonight), along with relevant metadata.

As DraftKings makes no guarantees about it's public API, this client makes no guarantees that existing API methods will work consistently.

Install using PyPi

pip install draft_kings

API

Get Contests for a Sport

from draft_kings.data import Sport
from draft_kings.client import contests

contests(sport=Sport.NBA)

Get Available Players for a Draft Group

from draft_kings.client import available_players

available_players(draft_group_id=1)

Get Draft Group Details

from draft_kings.client import draft_group_details

draft_group_details(draft_group_id=1)

Get Countries

Get all country information that DraftKings uses to make country-specific requests

from draft_kings.client import countries

countries()

Get Regions

Get all region information for the specified country code that DraftKings uses to make region-specific requests

from draft_kings.client import regions

regions(country_code='US')

Get Draftables

Get all draftable players

from draft_kings.client import draftables

draftables(draft_group_id=1)

draftkings_client's People

Contributors

jaebradley avatar tlarzg avatar

Watchers

James Cloos avatar  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.