panzarino/mlbgame

Building an updating scoreboard for a day's games

Closed this issue · 2 comments

Capture

Hi, trying to display the day's games and scores and update them every two minutes or so. Not quite sure what going on here, but I'm exploring the different functions listed in the API and I'm having trouble with this one. The result of the function are in hexadecimal. This is also happening for the games() function. Am I missing something? Thanks!

A list of objects is being returned when you call scoreboard(...) and the hexadecimal is the address in memory for each GameScoreboard object. I recommend calling scoreboard(...)[0].__dict__ to see the attributes for the first GameScoreboard object. You want to access the data within each object so you just need to figure out which attribute for the object contains the data that you want.

Thank you!