A bot made for /r/FantasyPL
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
FPLbot Update pattern for '-' compatibility Feb 9, 2019
.gitignore Update .gitignore .swp Feb 7, 2019
LICENSE Initial commit Jan 31, 2019
README.md Update README for initialising database Feb 6, 2019
config.json.example Update config.json.example Feb 9, 2019
post_template.md Fix StopIteration exception Feb 1, 2019
requirements.txt Add requirements.txt Jan 31, 2019



FPLbot is a bot made for the subreddit /r/FantasyPL. It can also be used for other subreddits by changing the values in the configuration file.

Its current features are:

  • Posting the price changes of Fantasy Premier League players


FPLbot uses MongoDB to store players in a database, and so it is required to have MongoDB installed. Other than that, it uses fpl to retrieve information from Fantasy Premier League's API, and thus requires Python 3.6+.

git clone git@github.com:amosbastian/FPLbot.git
cd FPLbot
pip install -r requirements.txt

To initialise the database you should do the following:

python FPLbot/utils.py

Once this has been done, you can schedule a cron job to run the bot whenever you want!


Option Value
USERNAME The bot's username
PASSWORD The bot's password
CLIENT_ID The bot's client ID
CLIENT_SECRET The bot's client secret
USER_AGENT A unique identifier that helps Reddit determine the source of network requests
SUBREDDIT The subreddit the bot will post to

For more information about how to set up a bot see Reddit's guide.