Advertisement
EddieKidiw

Grabber youtubedl.net

Jun 26th, 2016
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. ini_set('max_execution_time',0);
  4.  
  5. $id=$_GET['id'];
  6. $a=youtubedl_net('http://youtubedl.net/?link='.$id);
  7. $b=explode('<div class="downloadcontent">',$a);
  8. $b=explode('</br></p>',$b[1]);
  9. echo $b[0];
  10. echo'<br /><textarea cols="50" rows="10">'.htmlentities(trim($b[0])).'</textarea>';
  11.  
  12.  
  13.  
  14.  
  15. function youtubedl_net($url) {
  16. $ch = curl_init();
  17. curl_setopt($ch, CURLOPT_URL, $url);
  18. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  19. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  20. curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36');
  21. $data = curl_exec($ch);
  22. curl_close($ch);
  23. return $data;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement