Skip to content

Instantly share code, notes, and snippets.

Created Aug 22, 2017
What would you like to do?
Fetch movie information from IMDB using Python
# working version of
import urllib2
import json
def search(query):
get_url = '' % query
response = urllib2.urlopen(get_url).read().decode('utf-8')
return json.loads(response)
search('True Grit')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment