Created
November 23, 2015 15:37
-
-
Save TrevorBasinger/00b38018f1817fee867e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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