- [Instructor] So we're done with the bake shop. 2
We're going to start moving into something 3
a little bit more complicated. 4
And again, this is going to be building our podcast search tool 5
where we will upload a bunch of episodes of a podcast, 6
and we will be able to ask questions 7
about the information stored in all those podcasts. 8
So to do that, you will need this feed parser library. 9
So I'm going to go ahead and install this. 10
This is just a Python library 11
that helps do some parsing of XML files. 12
It's just going to make our life a little bit easier 13
when we are processing some data. 14
So you'll want to make sure that you install that. 15
And then we can import it. 16
And now we will create a totally new file search store. 17
So if you recall, we did do this earlier 18
when we created our search store for the bake shop file. 19
But now we're going to create a new one, 20
and I've called this LinkedIn Live Demo store. 21
And once that is created, we can go ahead 22
and start downloading our podcast information. 23
So you will need the RSS URL 24
for the podcast that you want to use. 25
And I'm going to show you what this one looks like. 26
Okay, so this is the RSS feed 27
for the Google DeepMind podcast. 28
You can actually see the information right here. 29
So every podcast is going to have one of these. 30
It's just a big XML file 31
that contains all the information about the podcast. 32
There's tons of info here. We'll look at this more in depth. 33
So when you do this, or if you choose to do this on your own 34
and there's a podcast you want to be able to process, 35
just do a Google search for, you know, 36
the podcast name and RSS URL. 37
There's tons of websites that will help you extract those. 38
So that's exactly what I did for this one. 39
I just searched for it, and it's pretty easy to find. 40
Okay, so I'm going to execute this cell right now, 41
and you can see I've got the printout message here, 42
which is the title of the podcast, 43
which was Google DeepMind: The Podcast. 44
And so what we've done here is I've used feed parser 45
to essentially grab the information from that XML file 46
that I was just showing you. 47
I only grabbed the first five entries. 48
You can see I put a limit of five here, 49
and that's just 'cause this is a demo; 50
I didn't want to grab all of the data, 51
but of course you will want to actually process 52
all of the podcasts in there, 53
but I just wanted to keep it simple for right now. 54
So to understand this a little better, 55
let's take a look at what we have done in this code cell. 56
So I created this list here called Episodes. 57
And we can take a look at the length here. 58
It's five, and that makes sense because I said "limit five." 59
So essentially I grabbed the first five episodes 60
from that XML file. 61
So let's go ahead and actually take a look 62
at the first entry. 63
And so you can see that the feed parser library 64
very nicely took this URL here 65
and processed everything into these dictionaries. 66
And this is information about the first episode 67
at the top of that URL. 68
And the title of this podcast was all about AlphaFold. 69
And so you can see information about the podcast: 70
there's like a summary, 71
there's information on when it was published, et cetera. 72
If we did this for the next item in our list, 73
you can see that now we have, let's see, 74
a different podcast episode. 75
This one is about Waymo. 76
And so each of these items in our episode list 77
is going to be a dictionary 78
representing a particular episode.