When we’re telling our Python script what HTML tags to grab, we need to know the structure of the website and what we’re looking for.
Many browsers, including Chrome, Firefox, and Safari, have Dev Tools that help you inspect a webpage and see what HTML elements it is composed of.
First, learn how to use DevTools.
Then, when you’re preparing to scrape a website, first inspect the HTML to see where the info you are looking for is located on the page.
Open your inspector tools and play around with the website in the browser. What are the tags, classes, or ids that could help you navigate around this page?