I am making a personal Live NHL stats program. Currently I have an output of
______________________________________________
Buffalo Sabres 0
Edmonton Oilers 0
______________________________________________
Toronto Maple Leafs 0
Calgary Flames 0
______________________________________________
Carolina Hurricanes 0
Philadelphia Flyers 0
______________________________________________
To get the home and away goals I am parsing NHLs JSON API like this.
goals_home = jsonResponse["liveData"]['linescore']['teams']['home']['goals']
Right now when I run the program it just keeps repeating itself every 3 seconds without clearing the screen and looks messy. Is there a method to just clear the numbers and just repeat those in the same spot.