Skip to content

Instantly share code, notes, and snippets.

@AndrewIngram
Created November 20, 2013 10:22
Show Gist options
  • Save AndrewIngram/7560897 to your computer and use it in GitHub Desktop.
Save AndrewIngram/7560897 to your computer and use it in GitHub Desktop.
Pokéhash
>>> import requests
>>> import random
>>> random.seed(<YOUR COMMIT HASH>)
>>> poke_id = random.choice(range(1,719))
>>> data = requests.get('http://pokeapi.co/api/v1/pokemon/' + str(poke_id) + '/')
>>> data.json()['name']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment