Skip to content

Instantly share code, notes, and snippets.

@MB6
MB6 / WC1
Last active August 29, 2015 14:02
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']