fbscraper/scraper.py
def _login(self):
        """routine to login to Facebook using passed credentials
        --------------------------------------------------------
        raises LoginError in case login is unsuccessful
        """
        try:
            self._browser.get(BASE_URL)
            self._browser.maximize_window()
            self._browser.find_element(By.NAME, "email").send_keys(self._credentials[0])
            self._browser.find_element(By.NAME, "pass").send_keys(self._credentials[1])
            self._browser.find_element(By.NAME, "login").click()
            delay()
            soup = bs(self._browser.page_source, "lxml")
            title = soup.find("title").text.lower().split()
            if "log" in title:
                raise LoginError("Login unsuccessful! Please check the credentials.")
        except NoSuchElementException:
            raise SourceError(f"Login page decoding is outdated!\nPlease create an issue at {ISSUE_URL}")
routine to login to Facebook using passed credentials
        --------------------------------------------------------
        raises LoginError in case login is unsuccessful
        
routine to login to Facebook using passed credentials
raises LoginError in case login is unsuccessful
routine to login to Facebook using passed credentials raises LoginError in case login is unsuccessful
def _login(self):
        try:
            self._browser.get(BASE_URL)
            self._browser.maximize_window()
            self._browser.find_element(By.NAME, "email").send_keys(self._credentials[0])
            self._browser.find_element(By.NAME, "pass").send_keys(self._credentials[1])
            self._browser.find_element(By.NAME, "login").click()
            delay()
            soup = bs(self._browser.page_source, "lxml")
            title = soup.find("title").text.lower().split()
            if "log" in title:
                raise LoginError("Login unsuccessful! Please check the credentials.")
        except NoSuchElementException:
            raise SourceError(f"Login page decoding is outdated!\nPlease create an issue at {ISSUE_URL}")
def _login ( self ) : try : self . _browser . get ( BASE_URL ) self . _browser . maximize_window ( ) self . _browser . find_element ( By . NAME , "email" ) . send_keys ( self . _credentials [ 0 ] ) self . _browser . find_element ( By . NAME , "pass" ) . send_keys ( self . _credentials [ 1 ] ) self . _browser . find_element ( By . NAME , "login" ) . click ( ) delay ( ) soup = bs ( self . _browser . page_source , "lxml" ) title = soup . find ( "title" ) . text . lower ( ) . split ( ) if "log" in title : raise LoginError ( "Login unsuccessful! Please check the credentials." ) except NoSuchElementException : raise SourceError ( f"Login page decoding is outdated!\nPlease create an issue at {ISSUE_URL}" )
routine to login to Facebook using passed credentials
raises LoginError in case login is unsuccessful
routine to login to Facebook using passed credentials raises LoginError in case login is unsuccessful
"""routine to login to Facebook using passed credentials
        --------------------------------------------------------
        raises LoginError in case login is unsuccessful
        """
self