App/Model.py
def scrape(self, eurl, div, attrs, **kwargs):
        """
        scrap elements within a link based on the <div>, html marks
        and other attributes or decoratos

        Args:
            eurl (str): gallery's element url
            div (str): HTML <div> keyword to search and scrap
            attrs (dict): decorative attributes in the <div> keyword to refine

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

        Returns:
            ans (bs-obj): HTML divs as a beatifulsoup object
        """
        try:

            # reset working web page
            self.wpage = Page()

            # get the body of the element url
            rstatus = self.wpage.get_body(eurl)
            ans = None

            if rstatus == 200:
                # find element inside the html body
                ans = self.wpage.findin(
                    div,
                    attributes=attrs,
                    multiple=kwargs.get("multiple"))
            # returning answer
            return ans

        # exception handling
        except Exception as exp:
            Err.reraise(exp, "Gallery: scrape")

        scrap elements within a link based on the <div>, html marks
        and other attributes or decoratos

        Args:
            eurl (str): gallery's element url
            div (str): HTML <div> keyword to search and scrap
            attrs (dict): decorative attributes in the <div> keyword to refine

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

        Returns:
            ans (bs-obj): HTML divs as a beatifulsoup object
        
scrap elements within a link based on the , html marks
and other attributes or decoratos
scrap elements within a link based on the html marks and other attributes or decoratos
def scrape(self, eurl, div, attrs, **kwargs):
        try:
            self.wpage = Page()
            rstatus = self.wpage.get_body(eurl)
            ans = None
            if rstatus == 200:
                ans = self.wpage.findin(
                    div,
                    attributes=attrs,
                    multiple=kwargs.get("multiple"))
            return ans
        except Exception as exp:
            Err.reraise(exp, "Gallery: scrape")
def scrape ( self , eurl , div , attrs , ** kwargs ) : try : self . wpage = Page ( ) rstatus = self . wpage . get_body ( eurl ) ans = None if rstatus == 200 : ans = self . wpage . findin ( div , attributes = attrs , multiple = kwargs . get ( "multiple" ) ) return ans except Exception as exp : Err . reraise ( exp , "Gallery: scrape" )
scrap elements within a link based on the <div>, html marks
and other attributes or decoratos
scrap elements within a link based on the <div > html marks and other attributes or decoratos
"""
        scrap elements within a link based on the <div>, html marks
        and other attributes or decoratos

        Args:
            eurl (str): gallery's element url
            div (str): HTML <div> keyword to search and scrap
            attrs (dict): decorative attributes in the <div> keyword to refine

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

        Returns:
            ans (bs-obj): HTML divs as a beatifulsoup object
        """ # reset working web page # get the body of the element url # find element inside the html body # returning answer # exception handling
ans (bs-obj): HTML divs as a beatifulsoup object
ans ( bs - obj ) : HTML divs as a beatifulsoup object
raise a generic exception if something goes wrong
raise a generic exception if something goes wrong
exp
self
eurl
gallery's element url
gallery ' s element url
div
HTML  keyword to search and scrap
HTML keyword to search and scrap
attrs
decorative attributes in the  keyword to refine
decorative attributes in the keyword to refine