I know that InstaPy had this issue and that it was fixed short after. But when I try to run one of my scripts via Telegram, this error appears:
Traceback (most recent call last):
File "/home/pi/Projects/Telegram-InstaPy-Scheduling/scripts.py", line 23, in usual
session.follow_user_followers(['xxx', 'xxx', 'xxx'], amount=40, randomize=True)
File "/usr/local/lib/python3.5/dist-packages/instapy/instapy.py", line 2493, in follow_user_followers
self.logfolder)
File "/usr/local/lib/python3.5/dist-packages/instapy/unfollow_util.py", line 881, in get_given_user_followers
channel, jumps, logger, logfolder)
File "/usr/local/lib/python3.5/dist-packages/instapy/unfollow_util.py", line 648, in get_users_through_dialog
dialog = browser.find_element_by_xpath(dialog_address)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 393, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 966, in find_element
'value': value})['value']
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/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":"xpath","selector":"//div[text()='Followers' or text()='Following']/../../following-sibling::div"}
(Session info: headless chrome=65.0.3325.181)
(Driver info: chromedriver=2.36 (a81166ad79e68fbfe7cf5ba243192d6412e26b37),platform=Linux 4.14.79-v7+ armv7l)
Running the script without Telegram works fine, so it doesn't seem to be an error from InstaPy's side.
I know that InstaPy had this issue and that it was fixed short after. But when I try to run one of my scripts via Telegram, this error appears: Traceback (most recent call last): File "/home/pi/Projects/Telegram-InstaPy-Scheduling/scripts.py", line 23, in usual session.follow_user_followers(['xxx', 'xxx', 'xxx'], amount=40, randomize=True) File "/usr/local/lib/python3.5/dist-packages/instapy/instapy.py", line 2493, in follow_user_followers self.logfolder) File "/usr/local/lib/python3.5/dist-packages/instapy/unfollow_util.py", line 881, in get_given_user_followers channel, jumps, logger, logfolder) File "/usr/local/lib/python3.5/dist-packages/instapy/unfollow_util.py", line 648, in get_users_through_dialog dialog = browser.find_element_by_xpath(dialog_address) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 393, in find_element_by_xpath return self.find_element(by=By.XPATH, value=xpath) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 966, in find_element 'value': value})['value'] File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.5/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":"xpath","selector":"//div[text()='Followers' or text()='Following']/../../following-sibling::div"} (Session info: headless chrome=65.0.3325.181) (Driver info: chromedriver=2.36 (a81166ad79e68fbfe7cf5ba243192d6412e26b37),platform=Linux 4.14.79-v7+ armv7l) Running the script without Telegram works fine, so it doesn't seem to be an error from InstaPy's side.