Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- print("[1] Quiz (1,2,3,4)\n[2] Poll (<>)")
- Ya = int(input("[+] Enter Number : "))
- headers = {
- "User-Agent": "Instagram 113.0.0.39.122 Android (24/5.0; 515dpi; 1440x2416; huawei/google; Nexus 6P; angler; angler; en_US)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Accept-Language": "en-US",
- "X-IG-Capabilities": "3brTvw==",
- "X-IG-Connection-Type": "WIFI",
- "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
- 'Host': 'i.instagram.com',
- 'Connection': 'keep-alive'
- }
- url = 'https://i.instagram.com/api/v1/accounts/login/'
- username = str(input("[+] Enter Username : "))
- password = str(input("[+] Enter Password : "))
- target = input("[+] Enter Target : ")
- Number = int(input("[+] Enter Number Story : "))
- def Check():
- global target, Number, username, password
- data = {
- 'uuid': 'e3357faa-92ab-401b-8465-9599857d1fce',
- 'password': password,
- 'username': username,
- 'device_id': 'e3357faa-92ab-401b-8465-9599857d1fce',
- 'from_reg': 'false',
- '_csrftoken': 'missing',
- 'login_attempt_countn': '0'
- }
- req = requests.post(url, data=data, headers=headers)
- hed = {
- 'user-agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36',
- 'x-csrftoken': 'xX0K5q7XikrU1LAnenqEVKqb7J3qK4S6',
- 'x-ig-app-id': '936619743392459',
- 'x-instagram-ajax': '0c15f4d7d44a',
- 'x-requested-with': 'XMLHttpRequest'
- }
- if not req.status_code == 200:
- print(f"[+] Error Login @{username}")
- else:
- print(f"[+] Done Login @{username}")
- coo = req.cookies
- head = {
- "Host": "i.instagram.com",
- "User-Agent": "Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Firefox/78.0",
- "Accept": "*/*",
- "Accept-Language": "en-US,en;q=0.5",
- "Referer": "https://www.instagram.com/",
- "X-IG-App-ID": "936619743392459",
- "X-IG-WWW-Claim": "hmac.AR12Fs18fzvYP9jCne1dhLjB5a8pdPtPh17yqrMQzdvWj2dQ",
- "Origin": "https://www.instagram.com",
- "DNT": "1",
- "Connection": "keep-alive"
- }
- fid = requests.get(f"https://www.instagram.com/{target}/?__a=1", headers=hed, cookies=coo)
- i = fid.json()['graphql']['user']['id']
- url_store = f"https://i.instagram.com/api/v1/feed/reels_media/?reel_ids={i}"
- r = requests.get(url_store, headers=head, cookies=coo)
- Number -= 1
- if Ya == 1:
- count = str(r.json()['reels_media'][0]['items'][Number]['story_quizs'][0]['quiz_sticker']['tallies'])
- print(count)
- elif Ya == 2:
- count = str(r.json()['reels_media'][0]['items'][Number]['story_polls'][0]['poll_sticker']['tallies'])
- print(count)
- else:
- print('[+] What You Want??')
- input()
- exit()
- Check()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement