- Python Web Scraping Cookbook
- Michael Heydt
- 45字
- 2021-06-30 18:44:13
How to do it
We proceed as follows:
- Execute the script for the recipe. It contains the following code:
util = URLUtility(const.ApodEclipseImage())
print("The content type is: " + util.contenttype)
- With the following result:
Reading URL: https://apod.nasa.gov/apod/image/1709/BT5643s.jpg
Read 171014 bytes
The content type is: image/jpeg