#100DaysOfCode in Python Transcripts
Chapter: Days 43-45: Consuming HTTP services
Lecture: Your turn: Day 3

Login or purchase this course to watch this video and the rest of the course contents.
0:00 The last day is adding polish. We're going to use a namedtuple. Now here's an example from our movie one. You want to create a corresponding one
0:09 for a search result. The other thing we're going to do, this is really, really simple and slick, is, if we look over here
0:15 you'll see that there is a URL that you can get to for every result. What you're going to do is you're going to write
0:21 a little bit of code that asks the user which one of these would you like to view in your web browser. Maybe give 'em a number,
0:29 and they can put 3, and so then you're goal is to write a little bit of code that will open the web browser and a new window at that URL,
0:36 and literally those two lines of code is all it takes across platform.


Talk Python's Mastodon Michael Kennedy's Mastodon