Skip to content

Instantly share code, notes, and snippets.

@datasciencewithpython
Created July 11, 2015 14:29
Show Gist options
  • Select an option

  • Save datasciencewithpython/e0395ab6b0b7ebb19c6a to your computer and use it in GitHub Desktop.

Select an option

Save datasciencewithpython/e0395ab6b0b7ebb19c6a to your computer and use it in GitHub Desktop.
functions
​def usage3(date):
#create a list to store the result in
results = []
a = {'api_key': 'TQaHrGv37Pz1kw5UOfjAItKgsRpdCBlD',"date":date,}
b = requests.post('https://probasketballapi.com/games', params=a)
c = b.text
d = (re.findall(r'"game_id":(\d+)',c))
for i in d
results.append(usage2(i))
return results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment