App/Model.py
def scrap_metadata(self, route, tag="div", attrs={"class": "content"}):
        """
        Scrap the metadata of a specific letter

        Args:
            route (str): Letter ID to scrap data
            tag (str): HTML <tag> keyword to search and scrap
            attrs (dict): decorative attributes in the <div> keyword to refine
            the search and scrap

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

        Returns:
            data (dict): dict with the different metadata attributes
        """
        try:
            data = self.wpage.scrap_metadata(route, tag=tag, attrs=attrs)
            for key in data:
                data[key] = self.clrtext(data[key])
            return data
        except Exception as exp:
            Err.reraise(exp, "Gallery: scrap_metadata")

        Scrap the metadata of a specific letter

        Args:
            route (str): Letter ID to scrap data
            tag (str): HTML <tag> keyword to search and scrap
            attrs (dict): decorative attributes in the <div> keyword to refine
            the search and scrap

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

        Returns:
            data (dict): dict with the different metadata attributes
        
Scrap the metadata of a specific letter
Args:
route (str): Letter ID to scrap data
tag (str): HTML  keyword to search and scrap
attrs (dict): decorative attributes in the  keyword to refine
the search and scrap

raise a generic exception if something goes wrong

data (dict): dict with the different metadata attributes
Scrap the metadata of a specific letter Args : route ( str ) : Letter ID to scrap data tag ( str ) : HTML keyword to search and scrap attrs ( dict ) : decorative attributes in the keyword to refine the search and scrap raise a generic exception if something goes wrong data ( dict ) : dict with the different metadata attributes
def scrap_metadata(self, route, tag="div", attrs={"class": "content"}):
        try:
            data = self.wpage.scrap_metadata(route, tag=tag, attrs=attrs)
            for key in data:
                data[key] = self.clrtext(data[key])
            return data
        except Exception as exp:
            Err.reraise(exp, "Gallery: scrap_metadata")
def scrap_metadata ( self , route , tag = "div" , attrs = { "class" : "content" } ) : try : data = self . wpage . scrap_metadata ( route , tag = tag , attrs = attrs ) for key in data : data [ key ] = self . clrtext ( data [ key ] ) return data except Exception as exp : Err . reraise ( exp , "Gallery: scrap_metadata" )
Scrap the metadata of a specific letter
Args:
route (str): Letter ID to scrap data
tag (str): HTML <tag> keyword to search and scrap
attrs (dict): decorative attributes in the <div> keyword to refine
the search and scrap
Scrap the metadata of a specific letter Args : route ( str ) : Letter ID to scrap data tag ( str ) : HTML <tag > keyword to search and scrap attrs ( dict ) : decorative attributes in the <div > keyword to refine the search and scrap
"""
        Scrap the metadata of a specific letter

        Args:
            route (str): Letter ID to scrap data
            tag (str): HTML <tag> keyword to search and scrap
            attrs (dict): decorative attributes in the <div> keyword to refine
            the search and scrap

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

        Returns:
            data (dict): dict with the different metadata attributes
        """
self
route
tag
attrs