Guest User

Untitled

a guest
Jun 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. while True:
  2. try:
  3. password_page = requests.get('https://{}.com'.format(url))
  4. password_page.raise_for_status()
  5.  
  6. except:
  7. print('Error checking password page! - https://{}.com'.format(url))
  8. continue
  9.  
  10.  
  11.  
  12. else:
  13. # *************---If password up---**************
  14.  
  15. if ('password' in password_page.url):
  16.  
  17. # Password page is up
  18. print('Password page is up! - ' + 'https://{}.com'.format(url))
  19.  
  20. if not ('password' in password_page.url):
  21.  
  22. # No password page -> password page
  23.  
  24.  
  25. # *************---Send to discord---**************
  26.  
  27. print("SENDING...1") #Discord function will be added later
  28.  
  29. time.sleep(random.randint(6, 12))
  30.  
  31.  
  32. # *************---If password down---**************
  33.  
  34. else:
  35. # Password page is down
  36. print('Password page is down! - ' + 'https://{}.com'.format(url))
  37. if ('password' in password_page.url):
  38.  
  39. # Password page -> no password page
  40.  
  41.  
  42. # *************---Send---**************
  43.  
  44. print("SENDING...2") #Discord function will be added laterthis print...
  45.  
  46. time.sleep(random.randint(6, 12))
  47.  
  48. # *************---Retry between 6-12 random.---**************
  49. finally:
  50. time.sleep(random.randint(6, 12))
Add Comment
Please, Sign In to add comment