Guest User

Basic Script Ripper Puhekupla - By Mercury (volodia)

a guest
Mar 7th, 2021
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1. <?php
  2.  
  3.     /**
  4.     *  ______  __      ______ ______       ________                  
  5.     *  ___  / / /_____ ___  /____  /__________  __ )___  ____________
  6.     *  __  /_/ /_  __ `/_  __ \_  __ \  __ \_  __  |  / / /__  /__  /
  7.     *  _  __  / / /_/ /_  /_/ /  /_/ / /_/ /  /_/ // /_/ /__  /__  /_
  8.     *  /_/ /_/  \__,_/ /_.___//_.___/\____//_____/ \__,_/ _____/____/
  9.     *
  10.     *  @link https://www.habbobuzz.com                                                        
  11.     *  @copyright The HabboBuzz Group
  12.     *  @author Mercury (volodia)
  13.     */
  14.  
  15.     $boucle = 0;//0-16-30
  16.     while($boucle <= 37) {
  17.  
  18.         $puhekupla = file_get_contents('https://content.puhekupla.com/api/v1/dump?per_page=100&page='.$boucle);
  19.  
  20.         header('Content-Type: application/json');
  21.         $jsonResultat = json_decode($puhekupla, true);
  22.  
  23.         define('BASE', 'ripper/');
  24.  
  25.         foreach($jsonResultat['result'] as $json)
  26.         {
  27.             $url    = $json['url'];
  28.             $img    = BASE . $json['title'];
  29.             $file   = file($url);
  30.             $result = file_put_contents($img, $file);
  31.         }
  32.  
  33.         $boucle++;
  34.     }
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment