def extract_match(self, list_title_matches):
        """Extract the title with the most matches from the list.

        :param list_title_matches: A list, the extracted titles which match with others
        :return: A string, the most frequently extracted title.
        """
        # Create a set of the extracted titles
        list_title_matches_set = set(list_title_matches)

        list_title_count = []
        # Count how often a title was matched and safe as tuple in list.
        for match in list_title_matches_set:
            list_title_count.append((list_title_matches.count(match), match))

        if list_title_count and max(list_title_count)[0] != min(list_title_count)[0]:
            return max(list_title_count)[1]

        return None
def extract_match ( self , list_title_matches ) : list_title_matches_set = set ( list_title_matches ) list_title_count = [ ] for match in list_title_matches_set : list_title_count . append ( ( list_title_matches . count ( match ) , match ) ) if list_title_count and max ( list_title_count ) [ 0 ] != min ( list_title_count ) [ 0 ] : return max ( list_title_count ) [ 1 ] return None
Extract the title with the most matches from the list.

        :param list_title_matches: A list, the extracted titles which match with others
        :return: A string, the most frequently extracted title.