lazargugleta / instagramUnfollowers

Find out who is not following you back on Instagram.
27 stars 10 forks source link

bug running #6

Closed valessiobrito closed 2 years ago

valessiobrito commented 2 years ago

$ python3 followers.py

Instagram Unfollow-Checker

Enter the account name you want to check. The profile has to be accessible from the credentials you set. (public or followed)

public Please select the language you are opening Instagram with. [en] English [de] German en Have you set up your credentials in the credentials.py file? You can login manually if you don't have it set up (standard). Type '[a]uto' or '[m]anual'. a Initializing WebDriver Manager

[WDM] -

[WDM] - ====== WebDriver manager ====== [WDM] - Current google-chrome version is 95.0.4638 [WDM] - Get LATEST driver version for 95.0.4638 [WDM] - Driver [/home/valessio/.wdm/drivers/chromedriver/linux64/95.0.4638.17/chromedriver] found in cache /home/valessio/Desenvolvimento/instagramUnfollowers/followers.py:10: DeprecationWarning: executable_path has been deprecated, please pass in a Service object self.driver = webdriver.Chrome(ChromeDriverManager().install())

WebDriver Manager successfully initialized. Traceback (most recent call last): File "/home/valessio/Desenvolvimento/instagramUnfollowers/followers.py", line 122, in my_bot = InstaUnfollowers(username, password) File "/home/valessio/Desenvolvimento/instagramUnfollowers/followers.py", line 17, in init accept_all_btn = self.driver.find_element(By.CLASS_NAME, 'bIiDR') File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 1012, in find_element return self.execute(Command.FIND_ELEMENT, { File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 318, in execute self.error_handler.check_response(response) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".bIiDR"} (Session info: chrome=95.0.4638.54)

lazargugleta commented 2 years ago

For me, it works like a charm. The issue could come up when you have a slow internet connection. If that is the case you could adjust the sleep time in the code.