Lib/Recovery/Content.py
def load_body(self, return_data=False):
        """
        Load the body of the url. 

        Args:
            return_data (bool): Defines if return data or not. Default to False

        Raises:
            exp: raise a generic exception if something goes wrong

        Returns:
            ans (BeautifulSoup): if return_data is True else returns None
        """
        try:
            ans = None
            response = requests.get(self.url)
            self.sbody = BeautifulSoup(response.text, "html.parser")
            if return_data:
                ans = self.sbody
                return ans
            else:
                return ans

        except Exception as exp:
            Err.reraise(exp, "Page: load_body")

        Load the body of the url. 

        Args:
            return_data (bool): Defines if return data or not. Default to False

        Raises:
            exp: raise a generic exception if something goes wrong

        Returns:
            ans (BeautifulSoup): if return_data is True else returns None
        
Load the body of the url.
Load the body of the url .
def load_body(self, return_data=False):
        try:
            ans = None
            response = requests.get(self.url)
            self.sbody = BeautifulSoup(response.text, "html.parser")
            if return_data:
                ans = self.sbody
                return ans
            else:
                return ans
        except Exception as exp:
            Err.reraise(exp, "Page: load_body")
def load_body ( self , return_data = False ) : try : ans = None response = requests . get ( self . url ) self . sbody = BeautifulSoup ( response . text , "html.parser" ) if return_data : ans = self . sbody return ans else : return ans except Exception as exp : Err . reraise ( exp , "Page: load_body" )
Load the body of the url.
Load the body of the url .
"""
        Load the body of the url. 

        Args:
            return_data (bool): Defines if return data or not. Default to False

        Raises:
            exp: raise a generic exception if something goes wrong

        Returns:
            ans (BeautifulSoup): if return_data is True else returns None
        """
ans (BeautifulSoup): if return_data is True else returns None
ans ( BeautifulSoup ) : if return_data is True else returns None
raise a generic exception if something goes wrong
raise a generic exception if something goes wrong
exp
self
return_data
Defines if return data or not. Default to False
Defines if return data or not . Default to False