facebook-post-scraper
facebook-post-scraper copied to clipboard
Unable to locate element:
I'm having this error:
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="loginbutton"]"} (Session info: chrome=85.0.4183.83)
Any advice?
change at scraper.py this line: browser.find_element_by_id(loginbutton').click() to this browser.find_element_by_id('u_0_b').click()
change at scraper.py this line: browser.find_element_by_id(loginbutton').click() to this browser.find_element_by_id('u_0_b').click()
the id changes continuously so you can use 'browser.find_element_by_name('login').click()' but this is depricated too. The whole script need to be updated.