SHARE
TWEET

Untitled

a guest Feb 18th, 2020 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. from time import sleep
  3.  
  4. class main:
  5.     def __init__(self):
  6.         self.headers = {
  7.             'Host': 'www.instagram.com',
  8.             'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0',
  9.             'Accept': '*/*',
  10.             'Accept-Language': 'en-US,en;q=0.5',
  11.             'Accept-Encoding': 'gzip, deflate, br',
  12.             'Referer': 'https://www.instagram.com/accounts/edit/',
  13.             'X-CSRFToken': 'xmFNy0R8AaPZmFGcPF8Ced2jJxkkQYd0',
  14.             'X-Instagram-AJAX': '1',
  15.             'X-Requested-With': 'XMLHttpRequest',
  16.             'Cookie': 'rur=FRC; mid=WjWe9QALAAG4Nm3YLDNCwbsViODa; urlgen="{\"time\": 1513463541\054 \"x.x.x.x\": 6327}:1eQUVc:rMExo9UDmy90yR8TVgsKn91DLZE"; ig_vw=1920; ig_pr=1; ig_vh=978; ig_or=landscape-primary; ig_notifications_dismiss=1514709338435; csrftoken=xmFNy0R8AaPZmFGcPF8Ced2jJxkkQYd0; ds_user_id=6753257913; sessionid=6753257913%3AhWD3V3jdQ3Lvoc%3A13',
  17.             'DNT': '1',
  18.             'Connection': 'keep-alive',
  19.         }
  20.         self.data = {
  21.             'username': 'USERNAME',
  22.         }
  23.         self.session = requests.Session()
  24.         self.session.headers.update(self.headers)
  25.  
  26.  
  27.         self.turbo()
  28.  
  29.     def turbo(self):
  30.         while True:
  31.             print(self.session.post('https://www.instagram.com/accounts/edit/', data=self.data).text)
  32.             sleep(5.1)
  33.  
  34. if __name__ == "__main__":
  35.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top