Skip to content

Instantly share code, notes, and snippets.

@sharma-rohit
sharma-rohit / Imdbratings.py
Created February 18, 2016 15:10
Prefix IMDB rating on movie names, which are placed under movie directory.
from urllib import request
import os
import json
from distlib.compat import raw_input
class Rename:
def getMovieData(self, searchString):
url = "http://www.omdbapi.com/?t=" + searchString.replace(" ", "+") + "&r=json"