What?

NadraSoccer is a discord bot that displays information about professional soccer/football. It has features of displaying information regarding fixtures, table standings, latest news and top statistics from a variety of competitions including English Premier League, UEFA Champions League and English FA Cup.

Why?

Discord is a communication tool that I frequently use with my friends. We all love watching soccer together and so I decided to combine the two. It makes it easier when we want to look for information while voice chatting. Instead of having to go to our browser and typing in our search terms, we can stay on our discord application and type in a two or three word command to get it. Additionally, I wanted to expand my python library knowledge and I saw the opportunity for making this discord bot.

How?

For starters, it uses Discord API for the bot to come to life. For the information, I used a HTML Parser library called Beautiful Soup to grab information from the website. I had to find a website that I can parse without needing special access and I found ESPN.com. With all of that, all I had to do was look at the source code for the website to find specific html tags that I can look for to find information. This is all coded in Python 3.

Notes

I don't have a dedicated server running the bot, hence the bot is usually running when my computer is turned on. There are also bugs with the program which is due to the way the espn website works, hence I have to code a workaround it. The token in the source code is censored for security reasons. Discord doesn't have a standard character size, hence formatting the information is difficult which results in tables not aligning.

The Program