Instagram-Like-Bot icon indicating copy to clipboard operation
Instagram-Like-Bot copied to clipboard

only liked one post then the error occurs

Open fmchan opened this issue 4 years ago • 0 comments

Getting posts to like... Liking posts... Post liked! Message: Unable to locate element: .ckWGn

Traceback (most recent call last): File "/Users/fmchan/Documents/python/Instagram-Like-Bot/scraper.py", line 59, in like_posts_in posts[post].click() File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click self._execute(Command.CLICK_ELEMENT) File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute return self._parent.execute(command, params) File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementClickInterceptedException: Message: Element

is not clickable at point (640,530) because another element
obscures it

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 39, in run_bot me.like_posts_in(hashtag) File "/Users/fmchan/Documents/python/Instagram-Like-Bot/scraper.py", line 78, in like_posts_in check_if_action_blocked = bot.find_element_by_class_name('RnEpo') File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 564, in find_element_by_class_name return self.find_element(by=By.CLASS_NAME, value=name) File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element return self.execute(Command.FIND_ELEMENT, { File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: .RnEpo zsh: abort python3 main.py

fmchan avatar Sep 13 '20 03:09 fmchan