to do that we're going to say doc dot find underscore all this is going to be we'll call this results actually no we'll call this items is equal to URL_TOKEN and i'm going to say text is equal to URL_TOKEN and i'm just going to look for the text of whatever the gpu is that i'm looking for now i really should call this something else probably so let's rename this from gpu to search term just so that it's more dynamic okay and the reason i'm doing URL_TOKEN here is because when i do this it will actually match any text that contains this if i just put search term i didn't put inside of the regular expression it would not match the text that there was anything different than the search term i miss explain that really what i'm saying is like let's say we have the text NUMBER_TOKEN and we're looking for NUMBER_TOKEN NUMBER_TOKEN. this will match with NUMBER_TOKEN but if i had like NUMBER_TOKEN NUMBER_TOKEN for the win and i just was looking for NUMBER_TOKEN it wouldn't match because this has extra characters in it whereas using this both of these will be a match hopefully that makes sense but that's why i'm using URL_TOKEN and now i want to loop through all of the items so i'm going to say for item in items print item and let's just look at what items we're actually getting here so let's run this let's look for a NUMBER_TOKEN and let's see okay so obviously we're getting a ton of stuff it's going to keep printing stuff out so let's go here whoa okay we have many many things here um okay yeah so we're getting quite a few things printing out okay that's fine anyways we're going to continue now we're going to look for the name of the item the price of the item and the link for the items so we will continue in one second we need to quickly thank the sponsor of this video and this series which is algo expert algo expert is the best platform to use when preparing for your software engineering coding interviews they have over NUMBER_TOKEN coding interview practice questions that cover everything you need to know to ace your software engineering interviews check them out from the link in the description and use the code tech with tim for a discount on the platform all right so i was just examining the output that we got there and i was realizing that we weren't quite getting exactly what i was looking for now let me just inspect on one of these right here and show you that what i actually want to look for is only items that are inside of this div right here so i'm going to copy this class name but if you look at this div this div is where all of the content is from my search results now if i just look for say NUMBER_TOKEN or NUMBER_TOKEN it's going to give me like the text up here as well i don't want that i only want actual items so what i'm going to do is copy this class name because this is the div that has the table inside of it and then i'm going to look only inside of this div for any text that matches what product we're looking for so how am i going to do that i'm going to say div is equal to doc dot find and then we're going to say class underscore equals that and then this needs to
START_SPONSOR_TOKEN we will continue in one second we need to quickly thank the sponsor of this video and this series which is algo expert algo expert is the best platform to use when preparing for your software engineering coding interviews they have over NUMBER_TOKEN coding interview practice questions that cover everything you need to know to ace your software engineering interviews check them out from the link in the description and use the code tech with tim for a discount on the platform all right END_SPONSOR_TOKEN