mime types

koko kokohh at hotmail.com
Fri Sep 13 05:06:43 CEST 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