Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#This module was written by Rahul Verma and edited slightly by Humza Shahid
import requests
#http://www.omdbapi.com/?i=tt3896198&apikey=3860d6cd
#http://www.omdbapi.com/
def movie_tvSE(Movie_name): # Movie And Tv Shows Search Engine
sent = Movie_name.split("'")
mylist= sent
mylist[0] = mylist[0].replace(' ', '+')
request = requests.get("http://www.omdbapi.com/?t=" + mylist[0] +"&apikey=3860d6cd").json()
title = "Title: " + request["Title"]
years = "Year: " + request["Year"]
actors = "Actors: " + request["Actors"]
story = "Story: " + request["Plot"]
genre = "Genre: " + request["Genre"]
ratings = "IMDB ratings: " + request["imdbRating"]
return title, years, actors, story, genre, ratings