how to fetch json from url in python code example Example: fetch a json from url python import requests r = requests.get('url') print r.json()