Created
July 11, 2015 14:29
-
-
Save datasciencewithpython/e0395ab6b0b7ebb19c6a to your computer and use it in GitHub Desktop.
functions
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
| 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