def get_live_scores(self, use_12_hour_format):
req = requests.get(RequestHandler.LIVE_URL)<EOL>if req.status_code == requests.codes.ok:<EOL><INDENT>scores_data = []<EOL>scores = req.json()<EOL>if len(scores["<STR_LIT>"]) == <NUM_LIT:0>:<EOL><INDENT>click.secho("<STR_LIT>", fg="<STR_LIT>", bold=True)<EOL>return<EOL><DEDENT>for score in scores['<STR_LIT>']:<EOL><INDENT>d = {}<EOL>d['<STR_LIT>'] = {'<STR_LIT:name>': score['<STR_LIT>']}<EOL>d['<STR_LIT>'] = {'<STR_LIT:name>': score['<STR_LIT>']}<EOL>d['<STR_LIT>'] = {'<STR_LIT>': {'<STR_LIT>': score['<STR_LIT>'],<EOL>'<STR_LIT>': score['<STR_LIT>']}}<EOL>d['<STR_LIT>'] = score['<STR_LIT>']<EOL>d['<STR_LIT:time>'] = score['<STR_LIT:time>']<EOL>scores_data.append(d)<EOL><DEDENT>self.writer.live_scores(scores_data)<EOL><DEDENT>else:<EOL><INDENT>click.secho("<STR_LIT>", fg="<STR_LIT>", bold=True)<EOL><DEDENT>
Gets the live scores