You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first time you run it with a profile, you're required to enter your 2-factor auth code, even if the profile you're using has the credentials already saved.
Once you enter your code, script will save the login for the next time (click on 'Save Login info').
The next time you run the script with profile, script can land directly on the user's page, skipping login and 2-factor auth screen.
It's working for me.
[*] => Script started
[*] => Downloading webdriver for your version of Chrome
[*] => Loading Instagram
[*] => Running in headless mode
[*] => Delay: 1-10 secs
[*] => Using profile: /home/user/.config/google-chrome/Profile 1
[*] => Launching Instagram
[*] => [launch_insta]: Attempt - 1
[*] => Checking if user is already logged in
[*] => [Attempt# 1] Validating login
[*] => Setting target to: ed_garlands
[*] => Opening target ed_garlands
[*] => [open_target]: Attempt - 1
[*] => Finding followers of ed_garlands
[*] => Restricting followers search to: 2
[*] => Opening followers list
[*] => Getting updated list of username divs
[*] => StaleElementReferenceException exception occured while capturing username links
[*] => Capturing div containing followers' list
[*] => Processing userdiv range: 0 - 22
[*] => Total username count: 2
Seems like headless mode is not loading profile. It does the entire sequence in every run:
The text was updated successfully, but these errors were encountered: