This article, as indicated in the title, follows this method.
正如标题所示,本文遵循这种方法。
The first method returns the HTML contents without HTML tags, the second method returns the title of the HTML file, and the last method gets the path of the HTML file.
第一个方法返回去除了HTML标记的文本内容,第二个方法返回HTML文件的标题,最后一个方法返回HTML文件的路径。
This parser collects the text children of the Title element in an internal list (self.text) and, upon reaching the close() method, returns that list.
这个解析器在一个内部列表(self.text)中收集 Title 元素的文本节点,并在到达 close() 方法后返回列表。
应用推荐