Skip to content

Instantly share code, notes, and snippets.

View datasciencewithpython's full-sized avatar

datasciencewithpython

View GitHub Profile
​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))