PHP Grabber
PHP Grabber
PHP Grabber
php
include 'includes/info.php';
include 'functions/youtube-func.php';
$url =
ngegrab('https://www.googleapis.com/youtube/v3/channels?part=snippet,statistics,branding
Settings&id='.$channelId.'&key='.$apikey.'');
$json = json_decode($url);
if($json)
$channelTitle = $data->snippet->title;
$description = $data->snippet->description;
$total = $data->statistics->videoCount;
$title = ''.$channelTitle.'';
$ogdescription = ''.$description.'';
include 'includes/head.php';
if(strlen($_GET['page']) >1)
$yesPage=$_GET['page'];
else
$yesPage='';
}
$grab =
ngegrab('https://www.googleapis.com/youtube/v3/search?part=snippet&channelId='.$chann
elId.'&key='.$apikey.'&maxResults=10&type=video&pageToken='.$yesPage.'');
$json = json_decode($grab);
$nextpage=$json->nextPageToken;
$prevpage=$json->prevPageToken;
if($json)
$id = $hasil->id->videoId;
$title = $hasil->snippet->title;
$thumbnail = $hasil->snippet->thumbnails->medium->url;
$hasil =
ngegrab('https://www.googleapis.com/youtube/v3/videos?key='.$apikey.'&part=snippet,cont
entDetails,statistics,topicDetails&id='.$id.'');
$ks = json_decode($hasil);
$channelTitle = $data->snippet->channelTitle;
$channelId = $data->snippet->channelId;
echo '<table>';
echo '<tbody>';
echo '<td>';
echo '</td>';
echo $title;
echo '</div>';
echo '</td>';
echo '</tr>';
echo '</tbody>';
echo '</table>';
echo '</a>';
echo '</div>';
if($_GET['id'])
if (strlen($prevpage)>1)
if (strlen($nextpage)>1)
echo '</div>';
include 'includes/foot.php';
?>