Skip to content

Instantly share code, notes, and snippets.

@rpryzant
Created Aug 22, 2017
Embed
What would you like to do?
Fetch movie information from IMDB using Python
# working version of https://gist.github.com/jayrambhia/1678382
import urllib2
import json
def search(query):
get_url = 'http://theapache64.xyz:8080/movie_db/search?keyword=%s' % 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