- Python Web Scraping Cookbook
- Michael Heydt
- 37字
- 2021-06-30 18:44:14
Determining the file extension from a content type
It is good practice to use the content-type header to determine the type of content, and to determine the extension to use for storing the content as a file.