Skip to content

Instantly share code, notes, and snippets.

@TrevorBasinger
Created November 23, 2015 15:37
Show Gist options
  • Save TrevorBasinger/00b38018f1817fee867e to your computer and use it in GitHub Desktop.
Save TrevorBasinger/00b38018f1817fee867e to your computer and use it in GitHub Desktop.
import requests
access_key = 'ce049883-1ed4-473c-970e-7d1e77cd7636'
url = 'https://erikberg.com/nba/leaders/points_per_game.json?limit=10&access_token=' + access_key
r = requests.get (url)
player_list = r.json()
for p in [player for player in player_list if int(player["value"]) > 25]:
print ' '
print p["display_name"]
print p["value"]
print p["rank"]
print p["team"]["full_name"]
print '---------'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment