This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
@Author: https://github.com/divinity76 | |
*/ | |
$channel = 'https://www.youtube.com/user/Tobuscus/videos?view=0&sort=dd&flow=grid'; //link to channel with sort parametrs in url | |
$maxResults = 3; //max number of videos to parse/output | |
$html = file_get_contents($channel); | |
$domd = @DOMDocument::loadHTML($html); | |
$xp = new DOMXPath($domd); |