import re
import requests
from datetime import datetime

print('''

اداة بسيطه لاستخراج ( sessionid )
بدون برامج ( الرجاء عدم وضع التحقق في حسابك )


''')


link = 'https://www.instagram.com/accounts/login/'
login_url = 'https://www.instagram.com/accounts/login/ajax/'

time = int(datetime.now().timestamp())
user = input('username : ')
pwd = input('password : ')
payload = {
    'username': ''+user+'',
    'enc_password': f'<PASSWORD>}',
    'queryParams': {},
    'optIntoOneTap': 'false'
}

with requests.Session() as s:
    r = s.get(link)
    csrf = re.findall(r"csrf_token\":\"(.*?)\"",r.text)[0]
    r = s.post(login_url,data=payload,headers={
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36",
        "X-Requested-With": "XMLHttpRequest",
        "Referer": "https://www.instagram.com/accounts/login/",
        "x-csrftoken":csrf
    })
print('')
print('----------------------------')
print('')
print(s.cookies)

import re
import requests
from datetime import datetime

print('''

اداة بسيطه لاستخراج ( sessionid )
بدون برامج ( الرجاء عدم وضع التحقق في حسابك )


''')


link = 'https://www.instagram.com/accounts/login/'
login_url = 'https://www.instagram.com/accounts/login/ajax/'

time = int(datetime.now().timestamp())
user = input('username : ')
pwd = input('password : ')
payload = {
    'username': ''+user+'',
    'enc_password': f'<PASSWORD>}',
    'queryParams': {},
    'optIntoOneTap': 'false'
}

with requests.Session() as s:
    r = s.get(link)
    csrf = re.findall(r"csrf_token\":\"(.*?)\"",r.text)[0]
    r = s.post(login_url,data=payload,headers={
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36",
        "X-Requested-With": "XMLHttpRequest",
        "Referer": "https://www.instagram.com/accounts/login/",
        "x-csrftoken":csrf
    })
print('')
print('----------------------------')
print('')
print(s.cookies)

اداة بسيطه لاستخراج ( sessionid ) بدون برامج ( الرجاء عدم وضع التحقق في حسابك )