Skip to content

Instantly share code, notes, and snippets.

@kbolt
Created July 11, 2016 23:56
Show Gist options
  • Select an option

  • Save kbolt/3fa9a3ec47b23cde439bbc38ec935b55 to your computer and use it in GitHub Desktop.

Select an option

Save kbolt/3fa9a3ec47b23cde439bbc38ec935b55 to your computer and use it in GitHub Desktop.
import requests,json
from pprint import pprint
movieId = 'tt0050083'
BASE_URL = 'http://www.omdbapi.com/?'
url = (BASE_URL + 'i=' + movieId + '&plot=full&r=json')
r = requests.get(url)
data = r.json()
pprint(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment