-
-
Save johnzeringue/eb7fb5059fb3394241fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
for match in requests.get('http://worldcup.sfg.io/matches').json(): | |
if match['status'] == 'completed': | |
print('{home[code]} {home[goals]}, {away[code]} {away[goals]}' \ | |
.format(home=match['home_team'], away=match['away_team'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment