Consuming HTTP Services in Python Transcripts
Chapter: Binary data from services (and elsewhere)
Lecture: Concept: Binary downloads with requests
Login or purchase this course to watch this video and the rest of the course contents.
0:01 Now that you've seen how we can download binary data, like mp3s and whatnot, with request, let's review he core concepts.
0:09 Of course, we are going to have to import requests, and then we saw that we had to enable streaming for this to work,
0:16 we got weird results, it looked like it was downloading but not really, so we had to enable streaming and turn on decode binary content to true;
0:24 we also saw that we can save a lot of stream juggling work, that we might have to do, if we use the shell utility copy file object
0:34 which takes one stream and copies to another so it reads right of the network and writes straight to the file system
0:39 and everything is taken care of, it's beautiful.