brutalsavage / facebook-post-scraper

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

chromedriver stops after filling in username and password #37

Closed JoaoRibeiroMedeiros closed 4 years ago

JoaoRibeiroMedeiros commented 4 years ago

chromedriver writes down my username and password but doesn't finish login (by pressing enter I suppose) and suddenly stops. Do you have any idea why? thanks a lot!

JoaoRibeiroMedeiros commented 4 years ago

I get the following error message

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="loginbutton"]"} (Session info: chrome=85.0.4183.83)

JoaoRibeiroMedeiros commented 4 years ago

looking at source code noticed login button is has the following Id 'ú-o-b' so changed the line

browser.find_element_by_id('loginbutton').click()

to

browser.find_element_by_id('u_0_b').click()