Skip to main content

Fantasy Footbot :soccer: :trophy:

Win Fantasy Premier League! Spend your dirty football manager money cost-effectively! Do linear maths! For people who can't pick football players good and want to learn to do other football manager stuff good too

Install with pip install footbot

Usage:

footbot scout
footbot --help
footbot scout -rf ppg # use the points per game ranking function, for example
footbot scout -bf lp_max # use the lp_max building function, for example

Example Output, Week 2 2018

(fantasy-footbot-gomZnCJG) rach@nbn:~/Repos/fantasy-footbot$ footbot scout
Loading Player Data: [################################] 527/527 - 00:00:42
Total Cost: 99.5, Points: 198
Players
 1. David Silva                           8.4 mil,   9 points  Man City midfielder
 2. Paul Pogba                            8.1 mil,  18 points  Man Utd midfielder
 3. Roberto Pereyra                       6.1 mil,  18 points  Watford midfielder
 4. Sadio Mané                            9.7 mil,  17 points  Liverpool midfielder
 5. Ricardo Domingos Barbosa Pereira      5.0 mil,  16 points  Leicester defender
 6. Callum Wilson                         6.1 mil,  14 points  Bournemouth forward
 7. Troy Deeney                           6.0 mil,  14 points  Watford forward
 8. Alex McCarthy                         4.5 mil,  13 points  Southampton goalkeeper
 9. Marcos Alonso                         6.6 mil,  24 points  Chelsea defender
10. Richarlison de Andrade                6.7 mil,  23 points  Everton midfielder
11. Benjamin Mendy                        6.2 mil,  23 points  Man City defender
12. Neil Etheridge                        4.5 mil,  22 points  Cardiff goalkeeper
13. Sergio Agüero                        11.1 mil,  22 points  Man City forward
14. Kieran Trippier                       6.0 mil,  11 points  Spurs defender
15. Steve Cook                            4.5 mil,  20 points  Bournemouth defender

Done. Enjoy your free fantasy football points.

This is extensible with custom ranking and team-building algorithms.

To-Do List

  • Need to make sure it picks a good captain for your team, since they're worth twice as much.
  • Need to make it care less about the value of players on the bench
  • Need to implement week-to-week factors such as home/away, strength of opposing team, and have a mode which scouts good transfers rather than for building a team

Metadata

Release files for footbot 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for footbot 0.1.0
File Size Uploaded
footbot-0.1.0.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for footbot 0.1.0
File Interpreter ABI Platform
footbot-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / footbot-0.1.0.tar.gz

Download URL footbot-0.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
40787d67aa1b350c54cc78903cd27af3f3508d4962751bc0831001e6f5bab318
BLAKE2b-256 checksum
How to use checksums
f87ce07ef76bec1aff27b3033de57444bdb06697586384355c8ee00339889e6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Release files / footbot-0.1.0-py3-none-any.whl

Download URL footbot-0.1.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3e17a510736fea7f65cf6bb6224241ae92a58e642f307c513c681dcbbed4c40
BLAKE2b-256 checksum
How to use checksums
714f23e4138d90d0bde85a31c234d6c384b36463680b0c893e6f7679fccda278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page