Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Make Session File #31

Open
mrb0098 opened this issue Dec 23, 2020 · 7 comments
Open

Make Session File #31

mrb0098 opened this issue Dec 23, 2020 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mrb0098
Copy link

mrb0098 commented Dec 23, 2020

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?

@harrypython harrypython added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 15, 2021
@harrypython
Copy link
Owner

Do you know some other script with this feature?

@mrb0098
Copy link
Author

mrb0098 commented Jan 15, 2021

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

@harrypython
Copy link
Owner

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?

@GitNees
Copy link

GitNees commented Jan 21, 2021

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

@GitNees
Copy link

GitNees commented Jan 23, 2021

@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

@sherrywilly
Copy link

y = send_request('accounts/#/', 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)

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants