shine-jayakumar / insta-likecom-bot

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

2 factor error without 2 factor activated #122

Open Vitordotpy opened 7 months ago

Vitordotpy commented 7 months ago

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 https://github.com/shine-jayakumar/insta-likecom-bot/issues/77#issuecomment-1630941742