Advertisement
ardann

[GET FOLLOWERS LIST][INSTAGRAM]

Jun 22nd, 2018
3,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.15 KB | None | 0 0
  1. <?php
  2. /*
  3. file config.php berisi variable
  4. $cookie dan $query_hash
  5. */
  6. $green = "\e[1;92m";
  7. $cyan = "\e[1;36m";
  8. $putih = "\e[0m";
  9. $blue = "\e[34m";
  10. $green1 = "\e[0;92m";
  11. $yellow = "\e[93m";
  12. $red = "\e[1;91m";
  13. include 'config.php';
  14.  
  15. function zzzZZZ($seconds)
  16.   {
  17.   $seconds = abs($seconds);
  18.   if ($seconds < 1):
  19.     usleep($seconds * 1000000);
  20.   else:
  21.     sleep($seconds);
  22.   endif;
  23.   }
  24.  
  25. function loading_p()
  26.   {
  27.   $green = "\e[1;92m";
  28.   $cyan = "\e[1;36m";
  29.   $putih = "\e[0m";
  30.   $blue = "\e[34m";
  31.   $green1 = "\e[0;92m";
  32.   $yellow = "\e[93m";
  33.   $red = "\e[1;91m";
  34.   $errorz = "[ " . $red . "ERROR!" . $putih . " ]";
  35.   echo $cyan . "Retrieving Data, Please Wait";
  36.   for ($i = 1; $i <= 10; $i++)
  37.     {
  38.     zzzZZZ(0.25);
  39.     $loading = $cyan . "." . $putih;
  40.     echo $loading;
  41.     }
  42.  
  43.   echo "\n";
  44.   }
  45.  
  46. function getID($a)
  47.   {
  48.   $get = json_decode(file_get_contents("https://api.zonkploit.com/ig/user-info/" . $a) , TRUE);
  49.   return $get['entry_data']['ProfilePage'][0]['graphql']['user']['id'];
  50.   }
  51.  
  52. function get_ardzz($url)
  53.   {
  54.   include 'config.php';
  55.  
  56.   $ch = curl_init();
  57.   curl_setopt($ch, CURLOPT_URL, $url);
  58.   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  59.   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  60.   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  61.   curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  62.     'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36',
  63.     $cookie
  64.   ));
  65.   $res = curl_exec($ch);
  66.   curl_close($ch);
  67.   return $res;
  68.   }
  69.  
  70. system("clear");
  71. loading_p();
  72. $id = getID($argv[1]);
  73. $b = 1;
  74. $get = get_ardzz("https://z-p3.www.instagram.com/graphql/query/?query_hash=" . $query_hash . "&variables={\"id\":\"" . $id . "\",\"first\":100}");
  75. $a = json_decode($get, TRUE);
  76. $next = $a['data']['user']['edge_followed_by']['page_info']['end_cursor'];
  77. echo "Total Followers Count : " . $green . $a['data']['user']['edge_followed_by']['count'] . $putih . "\n";
  78. echo "Next? [y/n] : ";
  79. $op = trim(fgets(STDIN, 1024));
  80. loading_p();
  81.  
  82. if ($op == "y")
  83.   {
  84.   foreach($a['data']['user']['edge_followed_by']['edges'] as $json)
  85.     {
  86.     echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $json['node']['username'] . " [ " . $cyan . $json['node']['full_name'] . $putih . " ]=> " . $cyan . $json['node']['id'] . $putih . "\n";
  87.     }
  88.  
  89.   if ($a['data']['user']['edge_followed_by']['page_info']['has_next_page'] == 1)
  90.     {
  91.     $gett = get_ardzz('https://z-p3.www.instagram.com/graphql/query/?query_hash=' . $query_hash . '&variables={"id":"' . $id . '","first":100,"after":"' . $next . '"}');
  92.     $lanjut = json_decode($gett, TRUE);
  93.     foreach($lanjut['data']['user']['edge_followed_by']['edges'] as $gas)
  94.       {
  95.       echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $gas['node']['username'] . " [ " . $cyan . $gas['node']['full_name'] . $putih . " ]=> " . $cyan . $gas['node']['id'] . $putih . "\n";
  96.       }
  97.  
  98.     if ($lanjut['data']['user']['edge_followed_by']['page_info']['has_next_page'] == 1)
  99.       {
  100.       $gettt = get_ardzz('https://z-p3.www.instagram.com/graphql/query/?query_hash=' . $query_hash . '&variables={"id":"' . $id . '","first":100,"after":"' . $lanjut['data']['user']['edge_followed_by']['page_info']['end_cursor'] . '"}');
  101.       $lanjutt = json_decode($gettt, TRUE);
  102.       foreach($lanjutt['data']['user']['edge_followed_by']['edges'] as $gass)
  103.         {
  104.         echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $gass['node']['username'] . " [ " . $cyan . $gass['node']['full_name'] . $putih . " ]=> " . $cyan . $gass['node']['id'] . $putih . "\n";
  105.         }
  106.  
  107.       if ($lanjutt['data']['user']['edge_followed_by']['page_info']['has_next_page'] == 1)
  108.         {
  109.         $getttt = get_ardzz('https://z-p3.www.instagram.com/graphql/query/?query_hash=' . $query_hash . '&variables={"id":"' . $id . '","first":100,"after":"' . $lanjutt['data']['user']['edge_followed_by']['page_info']['end_cursor'] . '"}');
  110.         $lanjuttt = json_decode($getttt, TRUE);
  111.         foreach($lanjuttt['data']['user']['edge_followed_by']['edges'] as $gasss)
  112.           {
  113.           echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $gasss['node']['username'] . " [ " . $cyan . $gasss['node']['full_name'] . $putih . " ]=> " . $cyan . $gasss['node']['id'] . $putih . "\n";
  114.           }
  115.         }
  116.  
  117.       if ($lanjuttt['data']['user']['edge_followed_by']['page_info']['has_next_page'] == 1)
  118.         {
  119.         $gettttt = get_ardzz('https://z-p3.www.instagram.com/graphql/query/?query_hash=' . $query_hash . '&variables={"id":"' . $id . '","first":100,"after":"' . $lanjuttt['data']['user']['edge_followed_by']['page_info']['end_cursor'] . '"}');
  120.         $lanjutttt = json_decode($gettttt, TRUE);
  121.         foreach($lanjutttt['data']['user']['edge_followed_by']['edges'] as $gassss)
  122.           {
  123.           echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $gassss['node']['username'] . " [ " . $cyan . $gassss['node']['full_name'] . $putih . " ]=> " . $cyan . $gassss['node']['id'] . $putih . "\n";
  124.           }
  125.         }
  126.       }
  127.     }
  128.   }
  129.  
  130. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement