Skip to content

2 factor error without 2 factor activated #122

Open
@Vitordotpy

Description

Hello, i getting a error while trying to login, just saw a issue with my same problem, tried the solution below and not worked.

LOGS


] => Script started
[
] => Downloading webdriver for your version of Chrome
[] => Loading Instagram
[
] => Delay: 2 secs
[] => Using profile: Profile Path on windows
[
] => Launching Instagram
[] => [launch_insta]: Attempt - 1
[
] => Checking if user is already logged in
[] => Could not find xpath: //img[contains(@alt, ' profile picture')]
[
] => Could not find xpath: //div[@Class='_acut']/div/span/img
[] => Could not find xpath: //img[@data-testid='user-avatar']
[
] => User not logged in. Attempting to login
[] => Could not locate 2 factor authentication screen
[
] => Could not locate 2 factor authentication screen
[] => Validating login
[
] => Could not find xpath: //img[contains(@alt, ' profile picture')]
[] => Could not find xpath: //div[@Class='_acut']/div/span/img
[
] => Could not find xpath: //img[@data-testid='user-avatar']
[] => Script ended with error
[
] => Error: [LoginFailedError] - Failed to login. Incorrect username/password, or 2 factor verification is active.


SOLUTION MENTIONED IN OTHER ISSUE:

To save the username/password you can use the path to your browser profile (check the README). You must provide username, password, and a target even if you're using a browser profile. You use a profile.json for this too, like this:

python3 ilcbot.py -pr myprofile.json --brprofile '/home/mycomputer/.config/google-chrome/Profile 1'

Here, I have specified my username, password, target in myprofile.json file and using a Chrome profile. Script will automatically detect if a login is required or not.

Originally posted by @shine-jayakumar in #77 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions