Open jcwelty opened 6 years ago
I am also receiving this error message. Perhaphs Facebook changed the login fields
If you remove all lines from scraper.py that reference the email or password, then it works. Then in the command line remove the calls to your email and password, but leave everything else. However, if you are like me, you then might run into an entirely different problem like this:
Finding and fixing top navs
Finding ad class
Processing 30 ads on page 1
Ad 1
Ad 2
Traceback (most recent call last):
File "scraper.py", line 321, in
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"name","selector":"login"} (Session info: headless chrome=69.0.3497.100) (Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64)
Anyone else seeing this? Selenuim can't seem to find the login button. Started a couple days ago.
Full error:
Traceback (most recent call last): File "scraper.py", line 343, in
headless=not args.headed, wait=args.wait)
File "scraper.py", line 171, in main
driver.find_element_by_name('login').click()
File "C:\Users\jackw\AppData\Local\conda\conda\envs\py36fbads\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 489, in find_element_by_name
return self.find_element(by=By.NAME, value=name)
File "C:\Users\jackw\AppData\Local\conda\conda\envs\py36fbads\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 957, in find_element
'value': value})['value']
File "C:\Users\jackw\AppData\Local\conda\conda\envs\py36fbads\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 314, in execute
self.error_handler.check_response(response)
File "C:\Users\jackw\AppData\Local\conda\conda\envs\py36fbads\lib\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":"name","selector":"login"}
(Session info: headless chrome=69.0.3497.100)
(Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64)