March 2019
Beginner
490 pages
12h 40m
English
DOM is the acronym for Document Object Model and is the way in which a browser interprets an HTML document inside a window.
The DOM presents a structure similar to that of the trunk of a tree from which branches are emerge. It is said that the HTML element that contains other elements is the father of these:
parent | children ├── Element ├── brother (sibling)
When searching through the DOM, BeautifulSoup returns the first item with the matching HTML tag. An interesting feature of the library is that it allows the user to search for specific elements in the structure of the document; in this way, we can search for meta tags, form, and links.
bs.find_all() is a method that allows us to find all the HTML elements ...
Read now
Unlock full access