brutalsavage / facebook-post-scraper

Facebook Post Scraper 🕵️🖱️
GNU General Public License v3.0
324 stars 116 forks source link

Unable to locate element: #33

Open enriquelpz23 opened 4 years ago

enriquelpz23 commented 4 years ago

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?

futur3gho5t commented 4 years ago

change at scraper.py this line: browser.find_element_by_id(loginbutton').click() to this browser.find_element_by_id('u_0_b').click()

KlevisImeri commented 1 year ago

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.