Skip to content

Instantly share code, notes, and snippets.

@jinpark
Created June 20, 2014 01:20
Show Gist options
  • Save jinpark/775fda413c4b1705c0c5 to your computer and use it in GitHub Desktop.
Save jinpark/775fda413c4b1705c0c5 to your computer and use it in GitHub Desktop.
import requests
req = requests.get('http://worldcup.sfg.io/matches')
for match in [m for m in req.json() if m['status'] == 'completed']:
print match['home_team']['country'], match['home_team']['goals'], 'v', match['away_team']['country'], match['away_team']['goals']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment