更改为bs4解析器

  1. >>> from lxml.html.soupparser import fromstring
  2. >>> root = fromstring ( tag_soup )