This is a simple script to fetch the live scores from a Fantasy Premier League league. It is confirmed as working for the 2017/18 season's game.
To run this program, you will need to know the ID for your league. When you visit your league page, you will see the ID in the URL. For example, the URL for the Football365's league is https://fantasy.premierleague.com/a/leagues/standings/578679/classic
. The league ID is 578679.
To run the program, use the following command (while in the directory in which you've downloaded it), replacing 578679 with the ID of your league.
./fpl_cli.py 578679
My motivation for writing this was an excercise in actor programming. It uses pykka: a lightweight actor framework for Python that is inspired by the akka actor programming language.
Requires pykka and requests to be installed.
These can be installed by running the following:
pip install pykka requests