使用HTMLParser解析html python网络编程学习笔记(7):HTML和XHTML解析(HTMLParser、BeautifulSoup) 使用HTMLParser解析html HTMLParser.feed(data): 参数为需要解析的html字符串,调用后字符串开始被解析