Other files

main.py

Root file of the project.

main.main()[source]

Runs main loop for the four leagues.

If a user wants to remove certain leauges, they can comment out the parts from the main loop. They can also reorder the leagues by swapping parts of the code.

Todo

Post Senior Design additions: Add functionality to enable/disable leauges and reorder them using the config file.

constants.py

API links that are constants over the code.

constants.LALIGA_API = 'http://site.api.espn.com/apis/site/v2/sports/soccer/esp.1/scoreboard'

API address for La Liga scores

Type

str

constants.MLB_API = 'http://statsapi.mlb.com/api/v1/schedule/games/?sportId=1'

API address for MLB scores

Type

str

constants.NBA_API = 'http://data.nba.net/prod/v1/20210428/scoreboard.json'

API address for NBA scores

Type

str

constants.NHL_API = 'http://live.nhle.com/GameData/RegularSeasonScoreboardv3.jsonp'

API address for NHL scores

Type

str