Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ishan-surana authored Aug 15, 2024
1 parent 815d281 commit 8ec57f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MetaDataScraper/FacebookScraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand All @@ -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')
Expand Down

0 comments on commit 8ec57f7

Please sign in to comment.