howlongtobeatpy/howlongtobeatpy/HTMLRequests.py
def __cut_game_title(game_title: str):
        """
        Function that extract the game title from the html title of the howlongtobeat page
        @param game_title: The HowLongToBeat page title of the game
        (For example "How long is A Way Out? | HowLongToBeat")
        @return: The cut game-title, without howlongtobeat names and grammatical symbols
        (So, in this example: "A Way Out")
        """

        if game_title is None or len(game_title) == 0:
            return None

        title = re.search("<title>([\w\W]*)<\/title>", game_title)
        # The position of start and end of this method may change if the website change
        cut_title = str(html.unescape(title.group(1)[12:-17]))
        return cut_title

        Function that extract the game title from the html title of the howlongtobeat page
        @param game_title: The HowLongToBeat page title of the game
        (For example "How long is A Way Out? | HowLongToBeat")
        @return: The cut game-title, without howlongtobeat names and grammatical symbols
        (So, in this example: "A Way Out")
        
Function that extract the game title from the html title of the howlongtobeat page
Function that extract the game title from the html title of the howlongtobeat page
def __cut_game_title(game_title: str):
        if game_title is None or len(game_title) == 0:
            return None
        title = re.search("<title>([\w\W]*)<\/title>", game_title)
        cut_title = str(html.unescape(title.group(1)[12:-17]))
        return cut_title
def __cut_game_title ( game_title : str ) : if game_title is None or len ( game_title ) == 0 : return None title = re . search ( "<title>([\w\W]*)<\/title>" , game_title ) cut_title = str ( html . unescape ( title . group ( 1 ) [ 12 : - 17 ] ) ) return cut_title
Function that extract the game title from the html title of the howlongtobeat page
Function that extract the game title from the html title of the howlongtobeat page
"""
        Function that extract the game title from the html title of the howlongtobeat page
        @param game_title: The HowLongToBeat page title of the game
        (For example "How long is A Way Out? | HowLongToBeat")
        @return: The cut game-title, without howlongtobeat names and grammatical symbols
        (So, in this example: "A Way Out")
        """ # The position of start and end of this method may change if the website change
The cut game-title, without howlongtobeat names and grammatical symbols
(So, in this example: "A Way Out")
The cut game - title without howlongtobeat names and grammatical symbols ( So in this example : " A Way Out " )
game_title
str
The HowLongToBeat page title of the game
(For example "How long is A Way Out. | HowLongToBeat")
The HowLongToBeat page title of the game ( For example " How long is A Way Out . | HowLongToBeat " )