From 8ec57f74fecd190eaa5f64c7bb95b4f3d718ed40 Mon Sep 17 00:00:00 2001 From: Ishan Surana <121395061+ishan-surana@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:31:41 +0530 Subject: [PATCH] Add files via upload --- MetaDataScraper/FacebookScraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MetaDataScraper/FacebookScraper.py b/MetaDataScraper/FacebookScraper.py index 579ff20..5f0d254 100644 --- a/MetaDataScraper/FacebookScraper.py +++ b/MetaDataScraper/FacebookScraper.py @@ -413,6 +413,7 @@ def __init__(self, page_id: str, email: str, password: str): self.post_shares = [] self.is_video = [] self.video_links = [] + self._logged_in = False def __setup_driver(self): """Sets up the Selenium WebDriver with necessary options.""" @@ -427,7 +428,6 @@ def __setup_driver(self): def __login(self): """Logs into Facebook using the provided credentials.""" - self._logged_in = False if self.driver.find_elements(By.ID, 'not_me_link'): self.driver.find_element(By.ID, 'not_me_link').click() self.driver.get('https://www.facebook.com/login')