Created
September 24, 2019 17:33
-
-
Save Trafitto/e8844b0346f7594028cb630d7c4b405a 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
''' | |
Response example: | |
{ | |
"bestemmia": "DIO CANE", | |
"count": 2 | |
} | |
''' | |
response = requests.get(BASE_URL.format(endpoint="random")) | |
response.raise_for_status() | |
print(response.json()) | |
''' | |
{'count': 1, 'bestemmia': u'DIO CANE'} | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment