Skip to content

Instantly share code, notes, and snippets.

@rpryzant
Created August 22, 2017 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpryzant/cb4fe2c4d676262d667a68fcbf4e4c91 to your computer and use it in GitHub Desktop.
Save rpryzant/cb4fe2c4d676262d667a68fcbf4e4c91 to your computer and use it in GitHub Desktop.
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