jeudi 1 juillet 2021

How to automate messenger login using request library

I want to automate login in messenger using request library (api) ! Help please Thanks in advanced import requests as r

headerr = {
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
}

login_data ={
    'zoest': '2956',
    'lsd':'AVpKVeXImm4',
    'initial_request_id':'A3FfY10kNL0ODTURgAiz4NO',
    'timezone': '-345',
    'lgndim': 'eyJ3IjoxMzY2LCJoIjo3NjgsImF3IjoxMzY2LCJhaCI6NzI4LCJjIjoyNH0',
    'lgnrnd': '080157_iqF6',
    'lgnjs': 'n',
    'email': 'username',
    'pass': 'password',
    'login': '1',
    'default_persisteform' : ''
}


with r.Session() as s:
    url = 'https://www.messenger.com/login/'
    re = s.get(url,headers = headerr)
    r.post(url,data = login_data,headers=headerr)
    print(r)



Aucun commentaire:

Enregistrer un commentaire