fbscraper/scraper.py
def scroll(self,
               nScrolls):
        """routine to scroll through the Facebook page
        ----------------------------------------------
        Input:
        :param nScrolls: number of times to scroll
        """
        try:
            for i in tqdm(range(nScrolls), desc="Scrolling"):
                self._browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
                delay()
        except Exception as e:
            print(f"Scrolling stopped! {e}")
routine to scroll through the Facebook page
        ----------------------------------------------
        Input:
        :param nScrolls: number of times to scroll
        
routine to scroll through the Facebook page
Input.
routine to scroll through the Facebook page Input .
def scroll(self,
               nScrolls):
        try:
            for i in tqdm(range(nScrolls), desc="Scrolling"):
                self._browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
                delay()
        except Exception as e:
            print(f"Scrolling stopped! {e}")
def scroll ( self , nScrolls ) : try : for i in tqdm ( range ( nScrolls ) , desc = "Scrolling" ) : self . _browser . execute_script ( "window.scrollTo(0, document.body.scrollHeight);" ) delay ( ) except Exception as e : print ( f"Scrolling stopped! {e}" )
routine to scroll through the Facebook page
Input:
routine to scroll through the Facebook page Input :
"""routine to scroll through the Facebook page
        ----------------------------------------------
        Input:
        :param nScrolls: number of times to scroll
        """
self
nScrolls
number of times to scroll
number of times to scroll