WEBVTT

00:02.360 --> 00:06.680
Okay here I have a lot of links that is duplicated.

00:06.680 --> 00:09.800
Okay, that needs to be removed.

00:10.160 --> 00:17.320
We need to design the program in a way that it only capture and show the unique link.

00:17.360 --> 00:24.200
For example, you see, we have a lot of this kind of link and a lot of this kind of link.

00:24.240 --> 00:27.880
We need to remove them and only store or save the unique link.

00:27.920 --> 00:32.760
So let's see if it is possible or not.

00:32.840 --> 00:36.080
So of course it is possible.

00:36.080 --> 00:38.760
But let's see how we can create this.

00:39.160 --> 00:43.120
The first thing I need to store all this into a list.

00:43.120 --> 00:44.800
So I'm going to create a list here.

00:44.840 --> 00:47.640
Let's name it target underscore link.

00:47.680 --> 00:49.640
It is going to be equal and empty list.

00:50.160 --> 00:58.720
So now I have this here and in here inside this if statement I am going to append this.

00:58.760 --> 00:59.160
Okay.

01:00.030 --> 01:09.310
So I am going to have the target link that we have it here.

01:09.750 --> 01:10.990
So let me think.

01:12.190 --> 01:12.670
Mhm.

01:15.030 --> 01:21.070
We are going to link or we are going to append this link to the target link each time.

01:21.070 --> 01:22.990
So very easy.

01:23.030 --> 01:24.510
We have the target link here.

01:24.550 --> 01:24.990
Okay.

01:25.790 --> 01:28.310
Dot append which is a method.

01:28.510 --> 01:31.190
And I am going to append the link here.

01:31.950 --> 01:34.750
And in here each time it is appending.

01:34.750 --> 01:43.430
And I need to check in here very easily if the URL is in the link and.

01:45.830 --> 01:49.870
And link and not in.

01:51.270 --> 01:59.830
We have the the list which is target link and it is a list.

01:59.830 --> 02:02.070
So let me save it now.

02:02.430 --> 02:08.270
And here I'm going to re-execute the program this time.

02:08.270 --> 02:13.750
You see we don't have any duplicated link at all.

02:13.750 --> 02:20.310
And it looks very beautiful as you see that I only have one, one of this one version of this link.

02:20.350 --> 02:26.550
And also I have only one of this and very, very unique.

02:26.830 --> 02:27.230
Okay.

02:28.030 --> 02:30.510
Let's see if we have something else.

02:32.270 --> 02:32.670
Okay.

02:32.670 --> 02:34.230
You see we have login.

02:34.230 --> 02:35.350
We have home.

02:43.550 --> 02:44.270
Index.

02:45.750 --> 02:46.350
Perfect.

02:46.470 --> 02:55.950
Now the program is almost completed and it is storing the links completely unique okay thanks for watching

02:55.950 --> 02:57.470
and I will see in the next lecture.
