python-xpath获取源码-对彪bs4
from lxml import etree,html
from html.parser import HTMLParser #导入html解析库
eobj = html.fromstring(response.text)
content = eobj.xpath('//body/div[@class="zbztb_ggcont clearfix mlr20" or @class="zbztb_ggcont clearfix"]')
content = html.tostring(content[0])
content = HTMLParser().unescape(content.decode())
print(content)