Git Product home page Git Product logo

afl-fantasy's Introduction

AFL-Fantasy

Utilities to scrape player data for AFL fantasy, predict future scores, and generate optimisations for a starting 22 under the $13M budget.

Example Usage:

Clone the repo and run python3 linear_optimisation.py. This uses the file players2021round2predictionsdup.csv which was generated in Excel from round 1 scores. The result should be a list of 22 players which is the optimal team for round 2 of 2021 based on round 1 scores.

player.py

Contains utilities to scrape player data from known sources once they are downloaded into an excel spreadsheet. Also contains utilities to store and retrieve player list to/from csv files.

linear_optimisation.py

Contains utilities to find the optimal team under a given budget from a list of players. When each player has a position, price, and projected points, the optimisation can be done.

partialseason.py

Contains utilities to generate averages between firstRound and lastRound for all players from a previous season.

page.py

Contains an abstract data type Page which has the function getAllPages which allows one to implement the pagination for different websites.

commentspage.py

Builds on page.py by defining a new type CommentsPage which inherits Page with additional functionality to list the comments from a page.

tally.py

Contains utilities to tally player mentions from a comments list generated by commentspage.py.

afl-fantasy's People

Contributors

conorwallwork 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.