Uh, okay, let's go back here.
We have package copy the raw load.
I think this has a little very small weakness.
Let me come right in here.
Let's re-execute the program.
And here, you know that while I hit log in, it will capture the data.
Okay?
Only username and password.
Okay.
Something.
Some big data.
Hit login.
Do not save it here.
You see.
Okay.
It is.
It did capture that.
Okay.
But while I am here, for example, I hit this dictionary something.
Let's go back here.
It's not capturing anything.
Oh my God.
Okay.
It does capture.
Okay.
It is capturing other data as well.
And this is one of the weakness of our program that instead of printing this here, we need to search
inside a list or from a dictionary or something that if a specific word or keyword exists into the list,
then print that for me.
If not, that is not then okay.
So.
Uh, for that, instead of printing this, I need to do another thing that is, uh, I need to save
this into a variable.
Okay.
Let's name it load.
So this load is equal to this.
Okay.
Now I have all the packs.
All data that belongs to load.
Raw is inside load.
Uh, word okay or Your word.
Okay, now I have another thing called keywords.
Okay.
It is going to be a list.
So here let's use username.
One of those thing is going to be username.
The other one is going to be user.
And let me show you that here.
For example you see we have username is equal to admin.
Password is equal to something like this.
Now I'm searching I'm adding this username into my list.
Sometimes some other programmer may name their variable user or someone may call it something else.
So I am giving those things here.
For example, someone is going to give login or someone may give pass or even password okay.
You can add more words here.
So now we have keyword.
I am going to use a for loop to search inside keyword.
So let's use for We have keyword okay.
Keyword.
In.
Keywords.
Okay.
Keywords is this list that we are going to search keyword inside them okay.
So.
Uh.
What happened?
Okay.
Now here we are searching for keyword in keywords.
Let's check if this keyword that we are searching inside keywords is inside the load.
Then let's print that.
If not.
So not if we have the keyword okay.
If keyword um in load okay.
Which has that data inside.
If that is inside then let's use print method and change the load.
And let's use break.
Let me save this now and go back to where I was.
Okay.
Let me introduce Ctrl C.
And here if I come back here we have the logout.
Let's log out that and try to execute our program.
Okay.
Now we are logged out I'm going to log in I have admin and this time I'm going to add admin space admin
hit login.
Now I'm logged in.
And right here you see our program has an error and that is print.
So result.
If keyword in load.
Okay.
What does this mean.
Type error okay.
Object is required not string.
Oh sorry for that.
If keyword in load.
This load is something else and it's kind of object.
And you're searching keyword okay.
Which are string inside this.
Let's go.
Let's come here.
As you see this keyword is string.
I want to change this load back to something else like uh str.
Let me save this again and try to execute this.
Let's come back here.
Hit logout.
Uh, let's hit login.
Add some fake data and login.
Don't save it.
Come right here.
You see, right now we are capturing the admin and also the password username is equal to admin.
Password is equal to something like this.
And now let's come back here.
And.
Let's hit that and add something else.
For example if there is any link okay.
This thing anything.
Now as you see we are not capturing anything more than this one.
Why?
Because it only has this username.
Okay.
That node has this username and username keyword.
And right now I'm only capturing this one.
Nothing else.
Okay.
So perfect.
Now you filter this in a better way.
Okay.
I'm sure we can do a lot more cool stuff than this.
Let's go and see if we are able or not.