Advertisement
MarsHall_ID

Doujin Grabber

Jan 29th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.11 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3.     echo "#################################\n";
  4.     echo "#         Doujin Hentai         #\n";
  5.     echo "#      Create By MarsHall       #\n";
  6.     echo "#################################\n";
  7.     echo "Kode Nuklir : ";
  8.     $kode = trim(fgets(STDIN));
  9.    
  10.  
  11. function http_request($url){
  12.     $ch = curl_init();
  13.     curl_setopt($ch, CURLOPT_URL, $url);
  14.     curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Linux; Android 5.0.2; Redmi Note 3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Mobile Safari/537.36');
  15.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  16.     $output = curl_exec($ch);
  17.     curl_close($ch);      
  18.     return $output;
  19. }
  20. $crot = http_request("https://nhopener-api.now.sh/$kode");
  21. $crot = json_decode($crot, TRUE);
  22.  
  23. $title = $crot['title']['display'];
  24. $img = $crot['images']['pages'][0]['link'];
  25. $artis = $crot['metadata']['artist']['name'];
  26. $tags = $crot['metadata']['tags'];
  27.  
  28.  
  29. echo "\n[+] Title : $title\n";
  30. echo "[+] Image : $img\n";
  31. echo "[+] Artist : $artis\n";
  32. for($xy=0;$xy<count($tags);$xy++){
  33.     echo "[+] Tags : $tags[$xy] \n";
  34. }
  35.  
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement