[PYTHON] Get the MIME Type

mimeGet.py


import mimetypes

print mimetypes.guess_type("path")

Easy to get

Recommended Posts

Get the MIME Type
Get the MIME type in Python and determine the file format
Get the GNOME version
Get the number of digits
[Python] Get the previous month
Maya | Get the workspace path
Get the complete bitflyer tick data
Get the desktop path in Python
Get the site update date seriously
Get the weather with Python requests
Get the script path in Python
How to get the Python version
Get the attributes of an object
Get the first element of queryset
About the basic type of Go
Get the value from the [Django] Form
Get the number of Youtube subscribers
Get the desktop path in Python
Get the host name in Python
Get the address from the zip code
Change the xfce4 terminal cursor type
Python Note: Get the current month
Get the file path using Pathlib
Get the query string (query string) in Django
Use the type features evolved in Sphinx-2.4
Get the client's IP address in Django
Get the column list & data list of CASTable
[Python] Get the variable name with str
Get the minutes of the Diet via API
Get the path to the systemd unit file
I can't get the element in Selenium!
[python] [meta] Is the type of python a type?
Get holidays with the Google Calendar API
Get the last day of the specified month
[Python] Get the character code of the file
Get the filename of a directory (glob)
Get the EDINET code list in Python
Get the address from latitude and longitude
[PowerShell] Get the reading of the character string
Get wordpress posts from the past week
[Python] Get the main color from the screenshot
Get the hierarchy name using the OpenMaya iterator
Get only the text from the Django form.
[Python] I tried to get the type name as a string from the type function