mime types

koko kokohh at hotmail.com
Thu Sep 12 23:06:43 EDT 2002


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?





More information about the Python-list mailing list