Created
March 21, 2020 16:11
-
-
Save BeyondEvil/92c52af74eb5e67a94edb8949e05826c to your computer and use it in GitHub Desktop.
This file contains 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 | |
def main(): | |
timeout=None | |
print(f"Timeout is: {timeout}") | |
response = requests.get( | |
"https://shootnscoreit.com/api/ipsc/match/<some match ID>/", | |
auth=("<user email>", "<user password>"), | |
headers={ | |
"Content-Type": "application/json", | |
"X_REQUESTED_WITH": "XMLHttpRequest", | |
"Accept": "JSON", | |
}, | |
timeout=timeout, | |
) | |
print(response.json()[0]["name"]) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment