Skip to content

Instantly share code, notes, and snippets.

@ANich
Created October 13, 2015 01:41
Show Gist options
  • Select an option

  • Save ANich/604ebc041e30de16fe66 to your computer and use it in GitHub Desktop.

Select an option

Save ANich/604ebc041e30de16fe66 to your computer and use it in GitHub Desktop.
import requests
r = requests.get('http://pokeapi.co/api/v1/pokemon/1')
json = r.json()
name = json['name'] #bulbasaur
weight = json['weight'] #69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment