Web Scraping with Python
Accessing an Element
Now you know that
HTML elements have different tags and may have classes and ids. How can you get to know what is the
id of specific web page element?
Since you are familiar with the
DevTools, you can jump to a specific position with the necessary element in
HTML. For instance, in the Chrome browser, you need to left-click on the top left button of
DevTools, and then point a cursor to a position on a web page you are interested in.
When hovering over an element, you will see a brief overview. If you left-click on an element, the respective part in the
HTML document will be revealed.
DevTools, name the
class of all the images on the page.
Select the correct answer