-
-
Save Crogers168419/6db20af1cc83b82cc47592c62ff8ece1 to your computer and use it in GitHub Desktop.
Instagram Turbo Bot - Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from time import sleep | |
| class main: | |
| def __init__(self): | |
| self.headers = { | |
| 'Host': 'www.instagram.com', | |
| 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0', | |
| 'Accept': '*/*', | |
| 'Accept-Language': 'en-US,en;q=0.5', | |
| 'Accept-Encoding': 'gzip, deflate, br', | |
| 'Referer': 'https://www.instagram.com/accounts/edit/', | |
| 'X-CSRFToken': 'xmFNy0R8AaPZmFGcPF8Ced2jJxkkQYd0', | |
| 'X-Instagram-AJAX': '1', | |
| 'X-Requested-With': 'XMLHttpRequest', | |
| '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', | |
| 'DNT': '1', | |
| 'Connection': 'keep-alive', | |
| } | |
| self.data = { | |
| 'username': 'USERNAME', | |
| } | |
| self.session = requests.Session() | |
| self.session.headers.update(self.headers) | |
| self.turbo() | |
| def turbo(self): | |
| while True: | |
| print(self.session.post('https://www.instagram.com/accounts/edit/', data=self.data).text) | |
| sleep(5.1) | |
| if __name__ == "__main__": | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment