App/Model.py
def clean_dlurl(self, gsoup, rurl, urle):
        # TODO: remove after implement the Topic() class
        """
        recovers the download URL for a gallery element

        Args:
            gsoup (bs-obj): beatifulSoup object with gallery element list
            rurl (str): domain root URL to complete the gallery index
            urle (str): HTML <div> keyword to scrap the gallery index
            urls to download files

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

        Returns:
            ans (str): unique URL with the downloadable element's file
        """
        try:
            ans = None

            if gsoup is not None:
                url = gsoup.get(urle)
                ans = urllib.parse.urljoin(rurl, url)

            # returning answer
            return ans

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

        recovers the download URL for a gallery element

        Args:
            gsoup (bs-obj): beatifulSoup object with gallery element list
            rurl (str): domain root URL to complete the gallery index
            urle (str): HTML <div> keyword to scrap the gallery index
            urls to download files

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

        Returns:
            ans (str): unique URL with the downloadable element's file
        
recovers the download URL for a gallery element
Args:
gsoup (bs-obj): beatifulSoup object with gallery element list
rurl (str): domain root URL to complete the gallery index
urle (str): HTML  keyword to scrap the gallery index
urls to download files

raise a generic exception if something goes wrong

ans (str): unique URL with the downloadable element's file
recovers the download URL for a gallery element Args : gsoup ( bs - obj ) : beatifulSoup object with gallery element list rurl ( str ) : domain root URL to complete the gallery index urle ( str ) : HTML keyword to scrap the gallery index urls to download files raise a generic exception if something goes wrong ans ( str ) : unique URL with the downloadable element ' s file
def clean_dlurl(self, gsoup, rurl, urle):
        try:
            ans = None
            if gsoup is not None:
                url = gsoup.get(urle)
                ans = urllib.parse.urljoin(rurl, url)
            return ans
        except Exception as exp:
            Err.reraise(exp, "Gallery: clean_dlurl")
def clean_dlurl ( self , gsoup , rurl , urle ) : try : ans = None if gsoup is not None : url = gsoup . get ( urle ) ans = urllib . parse . urljoin ( rurl , url ) return ans except Exception as exp : Err . reraise ( exp , "Gallery: clean_dlurl" )
recovers the download URL for a gallery element
Args:
gsoup (bs-obj): beatifulSoup object with gallery element list
rurl (str): domain root URL to complete the gallery index
urle (str): HTML <div> keyword to scrap the gallery index
urls to download files
recovers the download URL for a gallery element Args : gsoup ( bs - obj ) : beatifulSoup object with gallery element list rurl ( str ) : domain root URL to complete the gallery index urle ( str ) : HTML <div > keyword to scrap the gallery index urls to download files
# TODO: remove after implement the Topic() class """
        recovers the download URL for a gallery element

        Args:
            gsoup (bs-obj): beatifulSoup object with gallery element list
            rurl (str): domain root URL to complete the gallery index
            urle (str): HTML <div> keyword to scrap the gallery index
            urls to download files

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

        Returns:
            ans (str): unique URL with the downloadable element's file
        """ # returning answer # exception handling
self
gsoup
rurl
urle