A Telegram bot that gives you the latest fantasy premier league scores for the league.
Some of the cool features:
- /whohas <playername> - List all the manager who have a certain player
- /points - display latest point table
- /captains - display all the captain in the league
Please refer to screenshots below to see telegram-fantasy-premier-league-bot in action:
- You don't have to browse through the fantasy premier league website to find the latest points for each manager, with just one command you will get the immediate update.
- whohas makes it easy for the user to just simply use one command
/whohas <playerName>instead of going through on each and every manager page one by one which is very time consuming and frustrating. In a smaller league with 10 Manager that will probably take about 7 minutes but with this feature, output will be in seconds. /captainsagain is an amazing feature that gives you list of all the captains with one command
/benchpoints- will give a list of manager with total bench points
- You will need to install python telegram bot
- PrettyTable - Which is used to display the result as shown in the telegram Ipl cricket score bot screenshot above
- To install PrettyTable, Please follow: https://pypi.python.org/pypi/PrettyTable
- selenium - which is used to scrape premierleague website
- To install selenium, Please follow: http://selenium-python.readthedocs.io/installation.html
-
Execute in following order:
python database.py- This will create the points.db file.python leagueTable.py- This will insert iplPoint Table into points.dbpython latestPoints.py- This will insert points Tables into points.db'python playerInfo.py- This will insert playerInfo Table into points.dbpython interface.py- Once this is running, you can go to telegram and open Fantasypremierleague bot where you can type/startto start the telegram bot, it should return I'm a bot, please talk to me!. Once you can see that, you can run any of the the commands specified above such as/points,/whohas <playerName>or/captains
- 0.0.1
- Work in progress
Ardy Flora – [email protected]
Distributed under the MIT license. See LICENSE.txt for more information.
- Fork it (https://github.com/ardyflora/telegram-fantasy-premier-league-bot)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request

