Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FUCK!!!! Google API do it yourself By Domo lol
- $arr1 = array();
- $arr2 = array();
- for($i = 0; $i < 50; $i++){
- $pieces = explode("\"videoId\":", $homepage);
- $pieces1 = explode("},", $pieces[$i+1]);
- //echo $pieces[0] . "<br>";
- $str1 = trim(str_replace('"', '', trim($pieces1[0])));
- $str1 = trim(str_replace(' ', '', $str1));
- $pieces = explode("\"title\":", $homepage);
- $pieces3 = explode("\",", $pieces[$i+1]);
- if (preg_match('/SCP/',$pieces3[0])) {
- $pieces3 = explode(" ", $pieces3[0]);
- $str2 = trim(str_replace('"', '', trim($pieces3[1])));
- $str2 = trim(str_replace(' ', '', trim($str2)));
- $str2 = trim(str_replace('\\', ' ', trim($str2)));
- $arr1[] = array ("videoId" => $str1, "title" => $str2 );
- }
- if (preg_match('/CreepyPasta/', $pieces3[0])) {
- $str2 = trim(str_replace('"', '', trim($pieces3[0])));
- $str2 = trim(str_replace("''", ' ', trim($str2)));
- $str2 = trim(str_replace('\\', ' ', trim($str2)));
- $str2 = explode("|", $str2);
- if($str2 != "CreepyPastas")
- $arr2[] = array ("videoId" => $str1, "title" => $str2[1] );
- }
- }
- call:
- echo '<li><a href="?yt=.'$arr1[0]['videoId'].'">'.$arr1[0]['title'].'</a></li>';
- results:
- SCP-404
- SCP-049
- SCP-666-J
- SCP-307
- SCP-009
- SCP-724
- SCP-625
- SCP-1957
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement