Find Elements by ID
00:07 So, we’ve seen before that the response is all of this content, essentially, and we haven’t sifted through anything yet, but now the first step we’re going to do is find an element by ID. Now, what was the ID? Remember that this is an iterative process—this exploring of what is the information that you want to get from the site, of the content. And also just like figuring out where is it located.
00:48 Keep in mind that this is always available to you. You can keep coming back to your browser and just inspect using the developer tools to figure out what is the exact thing that you’re looking for. Right?
So, I can go ahead and just say, okay,
"resultsCol"—this is what I want to pick out. And on the
soup object, you have a method called
.find() that you can pass in an
id and then the name of the
id. So, in this case, this is
'resultsCol', and you can just run this, execute this code.
Become a Member to join the conversation.