Created
June 28, 2018 03:00
-
-
Save r3cebarnett/e8312e5f3bf85fe99f73865d43e98908 to your computer and use it in GitHub Desktop.
Hearthstone wikia example
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
python | |
import requests | |
import json | |
response = request.get("https://omgvamp-hearthstone-v1.p.mashape.com/cards", | |
headers={ | |
"X-Mashape-Key": "" | |
} | |
) | |
data = json.loads(response.text) # Note that this is a dict now | |
data.keys() # gives all the categories |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment