User agents, hello, everyone, every file that communicates using the ACTU, the protocol can be referred
as user agents, so the user agents should usually use user agent Haid header to identify themselves
when your military will make a request to get their information.
So let's have a look about how an example U.S. agents would look like to do that.
Let's go in python mode.
So let's write Python and I'll write from your library to request.
Import request and then from Eurorail library to request.
Import.
You are so open and after that, that's right, Rikyu equals.
Request.
And let's right an example website again, they were right for simplicity, HTP, YouTube, dot com,
so here I misspelled request.
So you can fix that by typing here and I wish you would have any error.
And now you're right, you are open Raicu sources here we the website as a request.
So if I open this, you can actually see the your request and this is something you've already seen.
But let's now check the user agent.
So to do that you can simply do Rikyu dot get Heather.
And then let's write the user on the slash agent.
OK, let's hit enter here, and you can see that our user agent is Python, your own library, three
point nine.
OK, so basically this is the agent or this is the tool that we used in order to assess this website.
OK, so the tool that we use, Python, for example, if you would like to assess some website from
the browser, then your user agent will be Lotame Mosiuoa or Opera or Safari or Chrome and so on.
So this is what I wanted to show you guys in this picture.
I hope it was for you because sometimes you really want to understand what tools you are using in order
to ascend to a certain agent, especially in automated systems.
So have this in mind and you can always use the user agent in order to get the tool with which to assist
certain URL.
Thank you very much for watching and I'll see you in the next video.