Now we have our program that you give a link to this and it extracts all the important links for you.
So later you can use it to gather information from each link and use them in a lot of places.
So the program is almost completed and you see this part.
We need to update this or put them into a function or a method.
So let me create a method here.
It is going to be global.
And here I need to give the URL and then one tab here.
And down here I need to call this method okay.
So let's call it Grogol.
And in here I need to give the URL as argument.
And also I need to call this method from inside this method.
And that is called recursion okay.
So let's save it.
And once again hit enter.
You see that again.
It is working perfectly.
And it is giving me all the unique links which is inside the URL that we are providing here.
And if I came back here, I provided something else, another link.
Okay, Let's scan here, for example.
Inside the server.
For example, right here.
Only copy this.
Let's see if it is working for other website or not.
So I copy this I save this and then I came back here I re-execute the program.
You see that it has only one link.
And that is here.
That is the login page okay.
And you see only one page here.
Let me come to phpMyAdmin or to this thing or forget that.
Let's give this one.
This one okay I'm going to save it.
And let's run this again.
Let's see.
See, we have this kind of links inside this that we can use them in a lot of places completely unique.
So thanks for watching and I will see you in the next section.