Connecting to imdb.com with curl and data extraction process
composer require slvler/imdb-service
<?php
use \qwerty\ImdbCurl as ImdbCurl;
require_once "autoload.php";
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$all = $imdb->All();
print_r($all);
?>
Title:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Title = $imdb->Title();
print_r($Title);
?>
Rating:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Rating = $imdb->Rating();
print_r($Rating);
?>
Vote:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Vote = $imdb->Vote();
print_r($Vote);
?>
Also Known As:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Also_Known_As = $imdb->Also_Known_As();
print_r($Also_Known_As);
?>
Awards:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Awards = $imdb->Awards();
print_r($Awards);
?>
Director:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Director = $imdb->Director();
print_r($Director);
?>
Writers:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Writers = $imdb->Writers();
print_r($Writers);
?>
Stars:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Stars = $imdb->Stars();
print_r($Stars);
?>
Budget:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Budget = $imdb->Budget();
print_r($Budget);
?>
Country:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Country = $imdb->Country();
print_r($Country);
?>
Language:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Language = $imdb->Language();
print_r($Language);
?>
Color:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Color = $imdb->Color();
print_r($Color);
?>
Aspect Ratio:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Aspect_Ratio = $imdb->Aspect_Ratio();
print_r($Aspect_Ratio);
?>
Official Sites:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Official_Sites = $imdb->Official_Sites();
print_r($Official_Sites);
?>
Runtime:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Runtime_M = $imdb->Runtime_M();
print_r($Runtime_M);
?>
Locations:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Locations = $imdb->Locations();
print_r($Locations);
?>
Certification:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Certification = $imdb->Certification();
print_r($Certification);
?>
Plot Summary:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$plotSummary = $imdb->Plot_Summary();
print_r($plotSummary);
?>
Plot Keywords:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$plotKeywords = $imdb->Plot_Keywords();
print_r($plotKeywords);
?>
Taglines:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$taglines = $imdb->Taglines();
print_r($taglines);
?>
Genres:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$genres = $imdb->Genres();
print_r($genres);
?>
Sound Mix:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Sound_Mix = $imdb->Sound_Mix();
print_r($Sound_Mix);
?>
Movie Connections:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Movie_Connections = $imdb->Movie_Connections();
print_r($Movie_Connections);
?>
Soundtracks:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Soundtracks = $imdb->Soundtracks();
print_r($Soundtracks);
?>
Crazy Credits:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Crazy_Credits = $imdb->Crazy_Credits();
print_r($Crazy_Credits);
?>
Quotes:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Quotes = $imdb->Quotes();
print_r($Quotes);
?>
Poster:
<?php
$imdb = new ImdbCurl("https://www.imdb.com/title/tt0068646/");
$Poster = $imdb->Poster();
print_r($Poster);
?>
Media:
<?php
$uri = "https://www.imdb.com/title/tt0068646/mediaviewer/rm1703430656/";
$imdb = new ImdbCurl();
$media = $imdb->Media($uri);
print_r($media);
?>