Python Jumpstart by Building 10 Apps Transcripts
Chapter: App 6: LOLCat Factory
Lecture: Introducing the LOLCat Factory App

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Hello and welcome to app number 6. We are calling this one The Cat Factory, as in LOL Cats, it's going to be fun. What exactly is a LOL Cat Factory?
0:11 Well, it may be a bit of a strange title but it's going to look like this. So we are going to have our standard header
0:17 and then I happen to know of a web service that will give you a random LOL Cat it's very important service on the internet
0:24 we are going to use it to return data, to our app. Previously in the weather app we had used Requests to make HTTP Requests against the weather site
0:33 and actually get the HTML's text. But now we are going to work with binary data, and the cat pictures
0:39 and then we are going to write that to a binary file which is quite different than using text files.
0:43 Finally, you can see at the bottom it says launching output folder and finder so we are going to start a subprocess from our app
0:50 and if this returning on Windows, it would say launching output in explorer. So what core concepts are we going to cover in this app?
0:58 Well, it's going to be a little bit shorter than the previous two marathon apps, but we are going to come back and talk about HTTP clients again,
1:05 this time with binary data and we said we are going to save those to binary files and we are going to use sub-processes launching other applications
1:14 from within ours to actually interact and display those pictures to the user. We are also going to come back to this
1:20 OS independent file and folder management and do a little bit more than we had been previously doing with our other apps.
1:27 All right, so let's get to it.


Talk Python's Mastodon Michael Kennedy's Mastodon