Python package fpl now updated for 2019/2020 season! by amosbastian

View this thread on steempeak.com
· @amosbastian ·
$0.74
Python package fpl now updated for 2019/2020 season!
<center>
![](https://i.imgur.com/ao1t2qN.png)
<br>
<sup>
https://github.com/amosbastian/fpl
</sup>
</center>

### What is **fpl**?

It's a Python wrapper for the [Fantasy Premier League](https://fantasy.premierleague.com/), which is a fantasy football game - "a game in which participants assemble an imaginary team of real life footballers and score points based on those players' actual statistical performance or their perceived contribution on the field of play. " At the time of writing this post there are more than 6 million teams entered, which includes loads of people on Steem who are participating in Steem's very own league (see [here](https://steemit.com/premierleague/@acidyo/4egmxy-steem-fantasy-premier-league-gameweek-1-preview)).

---

### Update

The 2019/2020 season of the Premier League started a while ago. With this they decided to change a lot of the endpoints of their API, and also what the endpoints actually return for some reason. Because of this I had to change quite a lot to get everything back in working fashion, but I think everything should be working properly with version 0.6.8 (as long as they don't keep changing things)! 

On a side note: the package has hit 50 stars, which makes me very proud, and the [Discord server](https://discord.gg/cjY37fv) has reached ~80 users! Don't hesitate to give the project a star yourself and join the discussion on Discord!

### Usage & installation

The recommended way to install fpl is via ``pip``.

    pip install fpl

To install it directly from GitHub you can do the following:

    git clone git://github.com/amosbastian/fpl.git

You can also install a [.tar file](https://github.com/requests/requests/tarball/master)
or [.zip file](https://github.com/requests/requests/tarball/master)

    $ curl -OL https://github.com/amosbastian/fpl/tarball/master
    $ curl -OL https://github.com/amosbastian/fpl/zipball/master # Windows

Once it has been downloaded you can easily install it using `pip`::

    $ cd fpl
    $ pip install .

## Contributing

1. Fork the repository on GitHub.
2. Run the tests with `pytest tests/` to confirm they all pass on your system.
   If the tests fail, then try and find out why this is happening. If you aren't
   able to do this yourself, then don't hesitate to either create an issue on
   GitHub, contact me on Discord or send an email to [amosbastian@gmail.com](mailto:amosbastian@gmail.com>).
3. Either create your feature and then write tests for it, or do this the other
   way around.
4. Run all tests again with with `pytest tests/` to confirm that everything
   still passes, including your newly added test(s).
5. Create a pull request for the main repository's ``master`` branch.

For more information on how to contribute to **fpl** see [the contributing guide](https://fpl.readthedocs.io/en/latest/contributing/contributing.html).

## Documentation

Documentation and examples for **fpl** can be found at http://fpl.readthedocs.io/en/latest/.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
👎  
properties (23)
post_id79,218,739
authoramosbastian
permlinkpython-package-fpl-now-updated-for-2019-2020-season
categoryfpl
json_metadata{"tags":["fpl","premierleague","sfpl","fantasy","football"],"image":["https:\/\/i.imgur.com\/ao1t2qN.png"],"links":["https:\/\/github.com\/amosbastian\/fpl","https:\/\/fantasy.premierleague.com\/","https:\/\/steemit.com\/premierleague\/@acidyo\/4egmxy-steem-fantasy-premier-league-gameweek-1-preview","https:\/\/discord.gg\/cjY37fv","https:\/\/github.com\/requests\/requests\/tarball\/master","mailto:amosbastian@gmail.com>","https:\/\/fpl.readthedocs.io\/en\/latest\/contributing\/contributing.html","http:\/\/fpl.readthedocs.io\/en\/latest\/"],"app":"steemit\/0.1","format":"markdown"}
created2019-08-19 15:14:12
last_update2019-08-19 15:14:12
depth0
children4
net_rshares2,334,886,251,602
last_payout2019-08-26 15:14:12
cashout_time1969-12-31 23:59:59
total_payout_value0.596 SBD
curator_payout_value0.143 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,972
author_reputation174,225,255,912,876
root_title"Python package fpl now updated for 2019/2020 season!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (43)
@steem-plus ·
SteemPlus upvote
Hi, @amosbastian!

You just got a **0.04%** upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in [here](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
properties (22)
post_id79,228,453
authorsteem-plus
permlinkpython-package-fpl-now-updated-for-2019-2020-season---vote-steemplus
categoryfpl
json_metadata{}
created2019-08-19 20:56:06
last_update2019-08-19 20:56:06
depth1
children0
net_rshares0
last_payout2019-08-26 20:56:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length438
author_reputation247,995,867,762,997
root_title"Python package fpl now updated for 2019/2020 season!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@verifyme ·
@amosbastian You have received a 100% upvote from @steemconductor because this post did not use any bidbots and you have not used bidbots in the last 30 days!

Upvoting this comment will help keep this service running.
properties (22)
post_id79,259,806
authorverifyme
permlinkre-python-package-fpl-now-updated-for-2019-2020-season-amosbastian-verifyme-randomvote
categoryfpl
json_metadata{"tags":["verifyme","random-upvote"],"users":["amosbastian","steemconductor"],"app":"null\/null","format":"markdown"}
created2019-08-20 16:06:42
last_update2019-08-20 16:06:42
depth1
children0
net_rshares0
last_payout2019-08-27 18:47:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length220
author_reputation-704,332,579,924
root_title"Python package fpl now updated for 2019/2020 season!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemitboard ·
Congratulations @amosbastian! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@amosbastian/birthday2.png</td><td>Happy Birthday! - You are on the Steem blockchain for 2 years!</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@amosbastian) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=amosbastian)_</sub>


###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
post_id82,370,487
authorsteemitboard
permlinksteemitboard-notify-amosbastian-20191207t230402000z
categoryfpl
json_metadata{"image":["https:\/\/steemitboard.com\/img\/notify.png"]}
created2019-12-07 23:04:03
last_update2019-12-07 23:04:03
depth1
children0
net_rshares0
last_payout2019-12-14 23:04:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length632
author_reputation38,705,954,145,809
root_title"Python package fpl now updated for 2019/2020 season!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemitboard ·
<center>[![](https://steemitimages.com/175x175/http://steemitboard.com/@amosbastian/level.png?201912080035)](https://steemitboard.com/@amosbastian)
<center>@amosbastian, sorry to see you have less Steem Power.
Your level lowered and you are now a **Red Fish**!</center>

###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
post_id82,372,411
authorsteemitboard
permlinksteemitboard-notify-amosbastian-20191208t005605000z
categoryfpl
json_metadata{"image":["https:\/\/steemitboard.com\/img\/notify.png"]}
created2019-12-08 00:56:06
last_update2019-12-08 00:56:06
depth1
children0
net_rshares0
last_payout2019-12-15 00:56:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length448
author_reputation38,705,954,145,809
root_title"Python package fpl now updated for 2019/2020 season!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000