howlongtobeatpy/howlongtobeatpy/HowLongToBeat.py
def __parse_web_result(self, game_name: str, html_result, game_id=None,
                           similarity_case_sensitive: bool = True):
        """
        Function that call the HTML parser to get the data
        @param game_name: The original game name received as input
        @param html_result: The HTML received from the request
        @param game_id: The game id to search
        @return: A list of possible games
        """
        if game_id is None:
            parser = HTMLResultParser(game_name, HTMLRequests.GAME_URL, self.minimum_similarity, game_id,
                                      similarity_case_sensitive)
        else:
            # If the search is by id, ignore class minimum_similarity and set it to 0.0
            # The result is filter by ID anyway, so the similarity shouldn't count too much
            # Also ignore similarity_case_sensitive and leave default value
            parser = HTMLResultParser(game_name, HTMLRequests.GAME_URL, 0.0, game_id)
        parser.feed(html_result)
        return parser.results

        Function that call the HTML parser to get the data
        @param game_name: The original game name received as input
        @param html_result: The HTML received from the request
        @param game_id: The game id to search
        @return: A list of possible games
        
Function that call the HTML parser to get the data
Function that call the HTML parser to get the data
def __parse_web_result(self, game_name: str, html_result, game_id=None,
                           similarity_case_sensitive: bool = True):
        if game_id is None:
            parser = HTMLResultParser(game_name, HTMLRequests.GAME_URL, self.minimum_similarity, game_id,
                                      similarity_case_sensitive)
        else:
            parser = HTMLResultParser(game_name, HTMLRequests.GAME_URL, 0.0, game_id)
        parser.feed(html_result)
        return parser.results
def __parse_web_result ( self , game_name : str , html_result , game_id = None , similarity_case_sensitive : bool = True ) : if game_id is None : parser = HTMLResultParser ( game_name , HTMLRequests . GAME_URL , self . minimum_similarity , game_id , similarity_case_sensitive ) else : parser = HTMLResultParser ( game_name , HTMLRequests . GAME_URL , 0.0 , game_id ) parser . feed ( html_result ) return parser . results
Function that call the HTML parser to get the data
Function that call the HTML parser to get the data
"""
        Function that call the HTML parser to get the data
        @param game_name: The original game name received as input
        @param html_result: The HTML received from the request
        @param game_id: The game id to search
        @return: A list of possible games
        """ # If the search is by id, ignore class minimum_similarity and set it to 0.0 # The result is filter by ID anyway, so the similarity shouldn't count too much # Also ignore similarity_case_sensitive and leave default value
A list of possible games
A list of possible games
self
game_name
str
The original game name received as input
The original game name received as input
html_result
The HTML received from the request
The HTML received from the request
game_id
The game id to search
The game id to search
similarity_case_sensitive
bool