Skip to main content

Automate playing Yahoo Fantasy Football

Project description

fantasy-football-bot (ffbot)

Automate playing Yahoo Fantasy Football

Installation

Usage

from ffbot import optimize, scrape

# Yahoo credentials and league/team id
# Visit your team at https://football.fantasysports.yahoo.com/f1/, and the url will also include your league and team ID
credentials = dict(
    username='your_yahoo_fantasy_username',
    password='your_yahoo_fantasy_password',
    league=123456,
    team=1,
)

# Scrape data for current and available players, and their point forecasts for each week
scrape(credentials)

# Optimize the assignment of players to positions each week to maximize remaining season discounted total points (points this week are worth more than points in future weeks)
#  decides which players to add and drop
#  optimization is repeated for current roster, for one player add/drop, two player add/drops, etc.
optimize()

Contribution

Please add Issues or submit Pull requests!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ffbot-1.0.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

ffbot-1.0.0-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page