itsagramlive icon indicating copy to clipboard operation
itsagramlive copied to clipboard

Make Session File

Open mrb0098 opened this issue 3 years ago • 7 comments

i am try few times to login with special ip in one day and finally instagram block my request Is it possible to save the session for next login?

mrb0098 avatar Dec 23 '20 14:12 mrb0098

Do you know some other script with this feature?

harrypython avatar Jan 15 '21 17:01 harrypython

I remember there were several PHP repositories for working with Instagram on GitHub

mrb0098 avatar Jan 15 '21 18:01 mrb0098

I remember there were several PHP repositories for working with Instagram on GitHub

Nice, can you find one of these codes and share it here to help with this new feature?

harrypython avatar Jan 15 '21 19:01 harrypython

Take a look at these repositories . I hope you find it useful

https://github.com/ping/instagram_private_api https://github.com/postaddictme/instagram-php-scraper https://github.com/cosenary/Instagram-PHP-API https://github.com/machacker16/InstagramLive-PHP

mrb0098 avatar Jan 15 '21 22:01 mrb0098

I think what he means is saving the login cookie if that works in such way...

GitNees avatar Jan 21 '21 10:01 GitNees

@harrypython I don't know how the logon works exactly, but it logs on a "Samsung S9 model phone", I found this tool that has a way of extracting the session_id and token after logging in. check the instagram.py code. Not sure if that is usefull as an improvement. https://github.com/softcoder24/insta_share/tree/master/insta_share

This might prevent the mail you get everytime you login. Not sure if this is usefull

GitNees avatar Jan 23 '21 06:01 GitNees

y = send_request('accounts/login/', post=generate_signature(data=z))

user.cookie =y.cookies.get_dict()

-> save the cookies in file and pass in requests as cookies

requests.post( API_URL + endpoint, data=post, headers=h, cookies=_cookie, verify=verify, proxies=proxy)

sherrywilly avatar Nov 04 '21 01:11 sherrywilly