1 00:00:04,930 --> 00:00:13,960 User agents, hello, everyone, every file that communicates using the ACTU, the protocol can be referred 2 00:00:13,990 --> 00:00:23,770 as user agents, so the user agents should usually use user agent Haid header to identify themselves 3 00:00:23,980 --> 00:00:28,930 when your military will make a request to get their information. 4 00:00:29,650 --> 00:00:35,430 So let's have a look about how an example U.S. agents would look like to do that. 5 00:00:35,440 --> 00:00:37,300 Let's go in python mode. 6 00:00:38,650 --> 00:00:46,990 So let's write Python and I'll write from your library to request. 7 00:00:49,240 --> 00:01:00,280 Import request and then from Eurorail library to request. 8 00:01:02,390 --> 00:01:03,320 Import. 9 00:01:05,090 --> 00:01:13,760 You are so open and after that, that's right, Rikyu equals. 10 00:01:16,340 --> 00:01:17,180 Request. 11 00:01:19,990 --> 00:01:29,100 And let's right an example website again, they were right for simplicity, HTP, YouTube, dot com, 12 00:01:29,650 --> 00:01:31,540 so here I misspelled request. 13 00:01:31,540 --> 00:01:36,870 So you can fix that by typing here and I wish you would have any error. 14 00:01:37,060 --> 00:01:46,060 And now you're right, you are open Raicu sources here we the website as a request. 15 00:01:46,420 --> 00:01:54,580 So if I open this, you can actually see the your request and this is something you've already seen. 16 00:01:54,970 --> 00:01:57,160 But let's now check the user agent. 17 00:01:57,530 --> 00:02:04,990 So to do that you can simply do Rikyu dot get Heather. 18 00:02:06,830 --> 00:02:13,970 And then let's write the user on the slash agent. 19 00:02:15,610 --> 00:02:25,540 OK, let's hit enter here, and you can see that our user agent is Python, your own library, three 20 00:02:25,540 --> 00:02:26,240 point nine. 21 00:02:26,690 --> 00:02:34,190 OK, so basically this is the agent or this is the tool that we used in order to assess this website. 22 00:02:34,240 --> 00:02:39,940 OK, so the tool that we use, Python, for example, if you would like to assess some website from 23 00:02:39,940 --> 00:02:48,340 the browser, then your user agent will be Lotame Mosiuoa or Opera or Safari or Chrome and so on. 24 00:02:49,000 --> 00:02:51,970 So this is what I wanted to show you guys in this picture. 25 00:02:52,210 --> 00:02:58,600 I hope it was for you because sometimes you really want to understand what tools you are using in order 26 00:02:58,600 --> 00:03:02,950 to ascend to a certain agent, especially in automated systems. 27 00:03:03,350 --> 00:03:13,480 So have this in mind and you can always use the user agent in order to get the tool with which to assist 28 00:03:14,080 --> 00:03:14,980 certain URL. 29 00:03:15,730 --> 00:03:18,900 Thank you very much for watching and I'll see you in the next video.