def process_links(self, links):
        """ Function to process the list of links and filter required links."""
        links_list = []
        for link in links:
            if os.path.splitext(link)[1][1:].strip().lower() in self.format_list:
                links_list.append(link)
        return links_list
Function to process the list of links and filter required links.