Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. FUCK!!!! Google API do it yourself By Domo lol
  2.  
  3. $arr1 = array();
  4. $arr2 = array();
  5. for($i = 0; $i < 50; $i++){
  6.  
  7. $pieces = explode("\"videoId\":", $homepage);
  8. $pieces1 = explode("},", $pieces[$i+1]);
  9. //echo $pieces[0] . "<br>";
  10. $str1 = trim(str_replace('"', '', trim($pieces1[0])));
  11. $str1 = trim(str_replace(' ', '', $str1));
  12.  
  13. $pieces = explode("\"title\":", $homepage);
  14. $pieces3 = explode("\",", $pieces[$i+1]);
  15.  
  16. if (preg_match('/SCP/',$pieces3[0])) {
  17. $pieces3 = explode(" ", $pieces3[0]);
  18. $str2 = trim(str_replace('"', '', trim($pieces3[1])));
  19. $str2 = trim(str_replace(' ', '', trim($str2)));
  20. $str2 = trim(str_replace('\\', ' ', trim($str2)));
  21. $arr1[] = array ("videoId" => $str1, "title" => $str2 );
  22. }
  23.  
  24. if (preg_match('/CreepyPasta/', $pieces3[0])) {
  25. $str2 = trim(str_replace('"', '', trim($pieces3[0])));
  26. $str2 = trim(str_replace("''", ' ', trim($str2)));
  27. $str2 = trim(str_replace('\\', ' ', trim($str2)));
  28. $str2 = explode("|", $str2);
  29. if($str2 != "CreepyPastas")
  30. $arr2[] = array ("videoId" => $str1, "title" => $str2[1] );
  31. }
  32. }
  33.  
  34. call:
  35. echo '<li><a href="?yt=.'$arr1[0]['videoId'].'">'.$arr1[0]['title'].'</a></li>';
  36.  
  37. results:
  38. SCP-404
  39. SCP-049
  40. SCP-666-J
  41. SCP-307
  42. SCP-009
  43. SCP-724
  44. SCP-625
  45. SCP-1957
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement