Downloading media content from the web is a simple process: use Requests or another library and download it just like you would HTML content.
Downloading media content from the web
Getting ready
There is a class named URLUtility in the urls.py mdoule in the util folder of the solution. This class handles several of the scenarios in this chapter with downloading and parsing URLs. We will be using this class in this recipe and a few others. Make sure the modules folder is in your Python path. Also, the example for this recipe is in the 04/01_download_image.py file.