Skip to content

Instantly share code, notes, and snippets.

@MB6
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MB6/795b05e27733046995a4 to your computer and use it in GitHub Desktop.
Save MB6/795b05e27733046995a4 to your computer and use it in GitHub Desktop.
world cup
import requests
resp = requests.get('http://worldcup.sfg.io/matches')
for jogo in resp.json():
if jogo['status'] == 'completed':
print jogo['home_team']['country'], jogo['home_team']['goals'], 'x', jogo['away_team']['country'], jogo['away_team']['goals']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment