Differentiating between normal webpages and XML pages (feeds)

I googled this question but found nothing related to the topic. Is there any way to differentiate between normal web links and xml links when using beautifulsoup in python?

I actually tried to use feedfinder2, but it was not helpful