def find_matches(self, list_title):
        """Checks if there are any matches between extracted titles.

        :param list_title: A list, the extracted titles saved in a list
        :return: A list, the matched titles
        """
        list_title_matches = []
        # Generate every possible tuple of titles and safe the matched string in a list.
        for a, b, in itertools.combinations(list_title, 2):
            if a == b:
                list_title_matches.append(a)

        return list_title_matches
def find_matches ( self , list_title ) : list_title_matches = [ ] for a , b , in itertools . combinations ( list_title , 2 ) : if a == b : list_title_matches . append ( a ) return list_title_matches
Checks if there are any matches between extracted titles.

        :param list_title: A list, the extracted titles saved in a list
        :return: A list, the matched titles