1, simple to understand BeautifulSoup library
Open a simple html files (each angle bracket forming a label, between the upper and lower relationship between tags, a tag tree is formed)
<html>
<body>
<p class="title">....</p>
</body>
</html>
BeautifulSoup library is resolved, traverse, Maintenance "tag tree" function library.
Wherein a label for example:
2, a reference library BeautifulSoup
The most common are:
from bs4 import BeautifulSoup
If we need time to BeautifulSoup library of basic variables judge you can refer directly to:
import bs4
We can be the entire contents of a HTML / XML documents BeautifulSoup corresponding simple terms.
3, BeautifulSoup interpreter library
4, the basic elements like Beautiful Soup
5, the basic operation of elements like Beautiful Soup