shine-jayakumar / insta-likecom-bot

Automates likes and comments on an instagram account or tag
MIT License
136 stars 29 forks source link

[Improvement] Save Session for Two-Factor Authentication #36

Closed ap0l0 closed 1 year ago

ap0l0 commented 1 year ago

The script doesn't save the session or clicks on "Save Info" when two factor is enable so everytime there is a change on the script the SMS has to be validated:

image

After login it the first time I would select the "Save Info" but it doesn't work because it seems like the session is reset everytime the script runs.

shine-jayakumar commented 1 year ago

The script doesn't save the session or clicks on "Save Info" when two factor is enable so everytime there is a change on the script the SMS has to be validated:

image

After login it the first time I would select the "Save Info" but it doesn't work because it seems like the session is reset everytime the script runs.

Script uses a webdriver which launches an instance of Chrome designed for automation. Clicking on "Save Info" button wouldn't save the sessions in these instance. Loading a profile while starting the script could be a useful addition. I will add this too.

ap0l0 commented 1 year ago

Hi @shine-jayakumar , looks like the not using the same session causes IG to recognize the script as a new device every single time is used and blocks actions because of this. Is there a way to make the session persist so it looks like a regular device/session instead of a new session everytime?

ap0l0 commented 1 year ago

As suspected IG servers are blocking now login attempts:

image

Error 401: Server Unahotirized

Please note that this will happen even with two-factor disable, it's just IG doesn;t like repeated logins

shine-jayakumar commented 1 year ago

As suspected IG servers are blocking now login attempts:

image

Error 401: Server Unahotirized

Please note that this will happen even with two-factor disable, it's just IG doesn;t like repeated logins

The next push will have option to load a chrome profile. This would allow users to save the login and wouldn't require multiple logins.

shine-jayakumar commented 1 year ago

Closing this issue since this has been implemented in v.3.0