View on GitHub

Ticker

Display a live-updating scoreline of both live and recently finished NHL hockey games in your terminal or widget

Download this project as a .zip file Download this project as a tar.gz file

Codacy Badge Build Status

A Python HTTP/JSON script to display the score of today’s NHL hockey games. When run in persistent mode, information is downloaded directly from the NHL website every 20 seconds.

Requirements

Additional requirements can be installed with pip - there is a requirements.txt file provided that allows you to simply run pip3 install -r requirements.txt. Included in this file are the following packages:

Usage

usage: ticker.py [-h] [-p]

optional arguments:
  -h, --help     show this help message and exit
  -p, --persist  live-update scores on persistent scoreboard

Once you’ve installed the requirements (pip3 install -r requirements.txt), permit the script to execute:

chmod u+x ticker.py

Then run the script:

ticker.py

This will run the script once, simply outputting the current scores.

If you wish to run the script persistently and have the scores auto-update every 20 seconds, add the --persist flag:

ticker.py -p

To quit, press Ctrl + C

Data Source

License

Copyright 2018 Stevie Howard.

MIT License