Monday , December 6 2021
DON'T MISS
Home / Academy Awards

Academy Awards

 Deadpool (2013) on IMDb



Get IMDB Info


Address :


‘;
function IMDB ($url){
preg_match(“/tt\\d{7}/i”, $url, $Id);
$Get = file_get_contents(‘http://www.omdbapi.com/?i=’.$Id[3c0ee779]);
$json = json_decode($Get,true);
return $json;
}

$Response = IMDB($_POST[‘url’]);
if(!$Response){
die (‘خطا!’);
}
echo “Title: “.$Response[‘Title’].’
‘.
“Year: “.$Response[‘Year’].’
‘.
“Rated: “.$Response[‘Rated’].’
‘.
“Released: “.$Response[‘Released’].’
‘.
“Runtime: “.$Response[‘Runtime’].’
‘.
“Genre: “.$Response[‘Genre’].’
‘.
“Director: “.$Response[‘Director’].’
‘.
“Writer: “.$Response[‘Writer’].’
‘.
“Actors: “.$Response[‘Actors’].’
‘.
“Plot: “.$Response[‘Plot’].’
‘.
“Language: “.$Response[‘Language’].’
‘.
“Country: “.$Response[‘Country’].’
‘.
“Awards: “.$Response[‘Awards’].’
‘.
“Poster: “.$Response[‘Poster’].’
‘.
“Metascore: “.$Response[‘Metascore’].’
‘.
“imdbRating: “.$Response[‘imdbRating’].’
‘.
“imdbVotes: “.$Response[‘imdbVotes’].’
‘.
“imdbID: “.$Response[‘imdbID’].’
‘.
“Type: “.$Response[‘Type’].’
‘.
“Response: “.$Response[‘Response’].’
‘.


;

}
?>

$(document).ready(function() {
$(‘#imdbInfoForm’).on(‘submit’, function(e) {
e.preventDefault();
var arr = $(‘#imdbUrl’).val().match(/tt(\d+)/);
var imdbId = arr[0];
$.ajax({
url: “http://www.omdbapi.com/?i=”3c0ee779,
success: function(data) {
$(‘#result’).html(‘Title: ‘ + data.Title + ‘
‘ + ‘Year: ‘ + data.Year + ‘
‘ + ‘Rated: ‘ + data.Rated + ‘
‘ + ‘Released: ‘ + data.Released + ‘
‘ + ‘Runtime: ‘ + data.Runtime + ‘
‘ + ‘Genre: ‘ + data.Genre + ‘
‘ + ‘Director: ‘ + data.Director + ‘
‘ + ‘Writer: ‘ + data.Writer + ‘
‘ + ‘Actors: ‘ + data.Actors + ‘
‘ + ‘Plot: ‘ + data.Plot + ‘
‘ + ‘Language: ‘ + data.Language + ‘
‘ + ‘Country: ‘ + data.Country + ‘
‘ + ‘Awards: ‘ + data.Awards + ‘
‘ + ‘Poster: ‘ + data.Poster + ‘
‘ + ‘Metascore: ‘ + data.Metascore + ‘
‘ + ‘imdbRating: ‘ + data.imdbRating + ‘
‘ + ‘imdbVotes: ‘ + data.imdbVotes + ‘
‘ + ‘imdbID: ‘ + data.imdbID + ‘
‘ + ‘Type: ‘ + data.Type + ‘
‘ + ‘Response: ‘ + data.Response + ‘
‘);

}
})
.done(function(data) {
if (console && console.log) {
console.log(“Sample of data:”, data.slice(0, 100));
}
});
})
});

Share and Enjoy !

Shares