title: check if the page is HTML page in python?
body: <p>I am trying to write a code in python for Web crawler. I want to check if the page I am about to crawl is a HTML page and not page like .pdf/.doc/.docx etc.. I do not want to check it with extension .html as asp,aspx, or pages like <a href="http://bing.com/travel/" rel="nofollow">http://bing.com/travel/</a> do not .html extensions explicitly but they are html pages. Is there any good way in python? </p>