I have a text file (links.txt) in the following format:
www.independent.co.uk www.bbc.co.uk www.theguardian.com www.telegraph.co.uk
www.dailymail.co.uk en.wikipedia.org www.huffingtonpost.co.uk www.bbc.co.uk
www.newsnow.co.uk www.express.co.uk
I have another text file (keys.txt) in the following format:
www.independent.co.uk www.bbc.co.uk www.theguardian.com
I want to compare both the text files and the URLs that are common in both the files has to be printed
I tried using the urltools package in python but couldn't do it for multiple urls