Advertisement
Guest User

Untitled

a guest
Nov 28th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. date_default_timezone_set('UTC');
  4. require __DIR__.'/vendor/autoload.php';
  5. /////// CONFIG ///////
  6. $username = 'username';
  7. $password = 'password';
  8. $debug = true;
  9. $truncatedDebug = true;
  10. try {
  11. $ig = new \InstagramAPI\Instagram($debug, $truncatedDebug);
  12. $ig->login($username, $password);
  13. } catch (\Exception $e) {
  14. echo 'Something went wrong: '.$e->getMessage()."\n";
  15. exit(0);
  16. }
  17.  
  18. try {
  19. $today = date("Y/m/d");
  20. $day = date("h:i");
  21. $userId = $ig->people->getUserIdForName('ueh');
  22. date_default_timezone_set('Asia/Riyadh');
  23. $date=date('Y-m-d H:i:s');
  24. for ($i=0; $i <= 10; $i++) {
  25. $ig->account->setBiography("The time is " . date("h:i") . " and Today is " . date("Y/m/d"));
  26. sleep(60);
  27. }
  28. }
  29. catch (\Exception $e) {
  30. echo 'Something went wrong: '.$e->getMessage()."\n";
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement