facebook_page_scraper
facebook_page_scraper copied to clipboard
selenium.common.exceptions.ElementClickInterceptedException: Message: Element is not clickable at point ([x],[y]) because another element <div class=> obscures it
I am using Firefox as a Browser.
When trying to connect with the Facebook Page, I sometimes face the Error mentioned in the Issue title.
This IS related to the Cookie Banner. However, searching the Internet, I found the following Link: https://proxyway.com/guides/how-to-scrape-facebook that gives some advice for adding code to the driver_utilities.py
The weird part is, that adding the following code to the py module helps - but only sometimes:
allow_span = driver.find_element(
By.XPATH, '//div[contains(@aria-label, "Allow")]/../following-sibling::div')
allow_span.click()
Im not sure if someone can reproduce this weird behavior