Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some issue selenium.common.exceptions.NoSuchElementException #3

Open
musicwarez opened this issue Dec 23, 2018 · 0 comments
Open

Some issue selenium.common.exceptions.NoSuchElementException #3

musicwarez opened this issue Dec 23, 2018 · 0 comments

Comments

@musicwarez
Copy link

Open https://www.instagram.com/accounts/login/
Trying to auth with cookies.
Successful authorization with cookies.
Open https://www.instagram.com/
Start scrolling page.
1%|█▏ | 2/300 [00:00<01:56, 2.56it/s]Browser process was ended

Traceback (most recent call last):
File "like_my_feed.py", line 26, in
br.process_feed(count)
File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/insta_browser/browser.py", line 102, in process_feed
processor.process(self.exclude, self.login)
File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/insta_browser/processors/feed_processor.py", line 89, in process
heart = real_post.find_element_by_css_selector('div:nth-child(3) section a:first-child')
File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 430, in find_element_by_css_selector
return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 659, in find_element
{"using": by, "value": value})['value']
File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/musicwarez/work/insta_bot/env/lib/python3.6/site-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":"div:nth-child(3) section a:first-child"}
(Session info: headless chrome=71.0.3578.98)
(Driver info: chromedriver=2.41.578700 (2f1ed5f9343c13f73144538f15c00b370eda6706),platform=Linux 4.15.0-43-generic x86_64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant