PHP code example of hooshid / rottentomatoes-scraper
1. Go to this page and download the library: Download hooshid/rottentomatoes-scraper library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hooshid / rottentomatoes-scraper example snippets
php
$rottentomatoes = new Hooshid\RottentomatoesScraper\Rottentomatoes();
$extract = $rottentomatoes->extract("/m/matrix");
$result = $extract['result'];
$error = $extract['error'];
// get all available data as json
echo json_encode($extract);