WEBVTT

00:00.140 --> 00:07.130
Okay, now let's try and look at the index page, see if there's something, some HTML markup we can

00:07.130 --> 00:08.060
look at.

00:09.010 --> 00:12.430
To get the homes that we need.

00:13.550 --> 00:14.780
So I press Ctrl.

00:14.810 --> 00:24.350
I look inside of my elements and we look at the home here.

00:26.060 --> 00:27.290
This one.

00:32.780 --> 00:34.160
Let's see if there's.

00:34.190 --> 00:34.910
Whoa.

00:36.200 --> 00:45.680
Okay, so we got, um, an item list element looks like for each of these.

00:46.320 --> 00:47.030
Yeah.

00:47.100 --> 00:48.210
Item prop.

00:48.240 --> 00:49.950
Item List element.

00:50.670 --> 00:56.190
So it looks like we can use this to go inside and get the.

00:57.070 --> 00:59.260
The the the homes.

01:01.420 --> 01:02.380
Let's see.

01:06.670 --> 01:07.240
Yeah.

01:08.860 --> 01:14.620
Oh, so we have a this one, a element.

01:16.360 --> 01:16.630
Okay.

01:16.630 --> 01:21.570
So we can try and look for an item list element and then look for an element.

01:21.580 --> 01:24.190
Maybe we can just say copy selector here.

01:24.700 --> 01:27.130
So I said copy selector.

01:28.180 --> 01:33.370
So Na doesn't really make any sense to do that.

01:33.870 --> 01:38.730
So I'm going to say I will select all the item list elements.

01:40.430 --> 01:44.570
Or all the elements that has an attribute of item prop.

01:44.600 --> 01:45.920
Item list element.

01:45.920 --> 01:48.590
And then I want to select the children.

01:49.310 --> 01:50.610
That's an A.

01:50.630 --> 01:52.190
I think that could work.

01:52.400 --> 01:53.930
So let's try and do that.

01:53.930 --> 01:57.590
So, um, item.

01:59.040 --> 01:59.840
Was it?

02:00.330 --> 02:01.390
Item prop.

02:01.400 --> 02:02.900
Item List element.

02:07.810 --> 02:10.660
Item list element.

02:13.590 --> 02:14.070
Yeah.

02:14.070 --> 02:16.380
So it selects the first one here.

02:16.620 --> 02:22.410
And then I also want to select the A of that.

02:22.410 --> 02:23.580
That's null.

02:23.760 --> 02:25.230
It's not so good.

02:31.880 --> 02:32.460
Let's see.

02:32.480 --> 02:32.750
Okay.

02:32.750 --> 02:39.290
It has a actually there's a meta item prop URL.

02:39.320 --> 02:45.110
That's that's a lot better I think, to get the URL of the the room.

02:45.230 --> 02:46.730
You can try and use that.

02:47.150 --> 02:47.990
Let's see.

02:52.240 --> 02:54.130
I think I'm going to go with this one.

02:55.040 --> 02:55.940
Let's try that.

02:56.910 --> 02:57.230
Uh.

02:58.130 --> 03:05.240
So now I'll just select all the items with item prop URL

03:06.980 --> 03:08.240
and

03:10.340 --> 03:12.950
display the attribute of content.

03:16.260 --> 03:17.700
Uh, type error.

03:21.250 --> 03:22.090
Let me see.

03:24.220 --> 03:25.720
Why does it say.

03:30.250 --> 03:36.940
Maybe it's I think it's because they sort of don't really have jQuery on this one.

03:37.330 --> 03:42.280
So it's actually not exactly working as it's supposed to.

03:43.150 --> 03:44.530
I think that.

03:45.240 --> 03:53.430
If we take this one inside of of our node JS, then we are going to get the result we want and just

03:53.430 --> 03:54.720
get the attribute.

03:55.470 --> 03:57.540
So let me show you what I mean.

03:57.540 --> 04:06.570
In the next section we are going to go into the Node JS code, get this page and get the items with

04:06.570 --> 04:09.600
the URL and get the content attribute.
