Automate playing Yahoo Fantasy Football
Project description
fantasy-football-bot (ffbot)
Automate playing Yahoo Fantasy Football
Installation
pip install ffbot
- requires downloading ChromeDriver
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for ffbot-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1fc765ebb48e9fe21d9768eecceb3536f2099397962285391a10cce31283e5d |
|
MD5 | 516d51b80d27e87a35f6cd90279ff8f6 |
|
BLAKE2b-256 | f37ed242f05a999d83f79415d159656ac98664a7c928541d494f7ead7fc7a0c8 |