Skip to content

Instantly share code, notes, and snippets.

@johnzeringue
Forked from fmasanori/jogos.py
Last active August 29, 2015 14:02
Show Gist options
  • Save johnzeringue/eb7fb5059fb3394241fc to your computer and use it in GitHub Desktop.
Save johnzeringue/eb7fb5059fb3394241fc to your computer and use it in GitHub Desktop.
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