Coder Social home page Coder Social logo

fpl_ai's Introduction

AI Guide for Fantasy Premier League

Artificial Intelligence guide for preparing my team for Fantasy Premier League.

License: MIT Run AI Bot

Fantasy Premier League

A.K.A FPL in short, it is a game in which participants assemble an imaginary team of real life footballers for a gameweek in the English Premier League and score points based on those players' actual statistical performance or their perceived contribution on the field of play. It requires predicting and foreseeing the future of the players' performance.

The fpl_AI Bot

  • It gives suggestions based on insights on what steps to take to maximize the FPL team points.
  • It makes the suggestions for player transfer if needed based on:
    • upcoming fixtures
    • players' form
    • team budget
  • It sends the suggestions or advice automatically via email a few hours before the FPL Gameweek deadline.

Workflow

Fetch and organize data

  • Scrape data
    • Parse and store all the data
cd src/scraping
python global_scraper.py
python teams_scraper.py ${TEAM_ID}
  • Update existing data with new data
cd src
rm -rf raw_data/2019-20/players
mv scraping/data/2019-20/players raw_data/2019-20/ -f
mv scraping/data/2019-20/players_raw.csv raw_data/2019-20/ -f
mv scraping/data/2019-20/fixtures.csv raw_data/ -f
mv scraping/data/team_data/my_team.json raw_data/ -f
mv scraping/data/gameweeks.json raw_data/ -f
rm -rf scraping/data
  • Clean and preprocess the data
python data_cleaner.py
python data_maker.py
  • Run the bot
cd src
python ai.py
  • Notify the user
cd src
python ai.py

Links

Data

Kudos to vaastav for the data

Concept

Kudos to ravgeetdhillon for the concept

fpl_ai's People

Contributors

likarajo avatar

Watchers

 avatar  avatar

Forkers

azaya89

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.