KinekaruFounder

Get Count Instagram Kinekaru

Jun 11th, 2018
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1.  
  2. <form method="post">
  3. <input class="form-control" type="text" name="username" required>
  4. <br>
  5. <button class="btn btn-danger"type="submit" name="submit">Get User Count</button>
  6.  
  7. </form>
  8.  
  9. <?php
  10. if (isset($_POST['submit'])) {
  11. $username = $_POST['username'];
  12. $ch = curl_init("https://www.instagram.com/".$username."/?__a=1");
  13. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  14. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  15. $ex = curl_exec($ch);
  16. curl_close($ch);
  17. $data = json_decode($ex);
  18. $bio = $data->user->biography;
  19. $url = $data->user->external_url;
  20. $followers = $data->user->followed_by->count;
  21. $following = $data->user->follows->count;
  22. $full_name = $data->user->full_name;
  23. $id = $data->user->id;
  24. $foto = $data->user->profile_pic_url;
  25. ?>
  26. </div>
  27. <h1>Result Count Data</h1> <br>
  28. <img src="<?=$foto?>" width="100" style="border-radius: 50%;"> <br>
  29. <p>Username : <?=$username?></p>
  30. <p>Nama : <?=$full_name?></p>
  31. <p>ID : <?=$id?></p>
  32. <p>Followers : <?=$followers?></p>
  33. <p>Following : <?=$following?></p>
  34. <p>Bio : <?=$bio?></p>
  35. <p>Situs Web : <!--#echo var="HTTP_HOST" -->
  36.  
  37. </p>
  38.  
  39. <?php
  40. }
  41. ?> </form>
  42. <hr/>
  43.  
  44. </html>
  45.  
  46. </div></div></div>
  47.  
  48. <div class="panel panel-primary text-center">
  49. <div class="panel-heading">
  50. <h4 class="panel-title"><i class="fa fa-users"></i> Followers</h4>
  51. </div>
  52. <div class="panel-body">
  53. <b><center> <iframe src="https://www.facebook.com/plugins/follow?href=https%3A%2F%2Fwww.facebook.com%2Freply.us&amp;layout=standard&amp;show_faces=true&amp;colorscheme=light&amp;width=450&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></center></strong></b>
  54. </div>
  55. <div class="panel panel-primary text-center">
  56. <div class="panel-heading">
  57. <h4 class="panel-title"><i class="fa fa-users"></i> Copyright &copy; 2017 Online Menu Tools</h4>
  58. </div>
Advertisement
Add Comment
Please, Sign In to add comment