i am trying to retreve urls. if it is mime text file, save the file. if not, pass e.g. url=http://www.uchicago.edu mimetypes.guess_type(url) sometimes it can give text/html. But a lot of them is text/html, but it only gives (None, None) Is there any accurate ways to determine the mine type?