Skip to content

Instantly share code, notes, and snippets.

@r3cebarnett
Created June 28, 2018 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r3cebarnett/e8312e5f3bf85fe99f73865d43e98908 to your computer and use it in GitHub Desktop.
Save r3cebarnett/e8312e5f3bf85fe99f73865d43e98908 to your computer and use it in GitHub Desktop.
Hearthstone wikia example
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