Skip to content

Instantly share code, notes, and snippets.

@TheBB
Forked from MB6/WC1
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheBB/be84c8061f5eed050963 to your computer and use it in GitHub Desktop.
Save TheBB/be84c8061f5eed050963 to your computer and use it in GitHub Desktop.
import requests
resp = requests.get('http://worldcup.sfg.io/matches')
for jogo in (j for j in requests.get('http://worldcup.sfg.io/matches').json() if j['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