Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 factor error without 2 factor activated #122

Open
Vitordotpy opened this issue Mar 26, 2024 · 0 comments
Open

2 factor error without 2 factor activated #122

Vitordotpy opened this issue Mar 26, 2024 · 0 comments

Comments

@Vitordotpy
Copy link

Vitordotpy commented Mar 26, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant