【python爬虫】windoes的爬虫中文乱码现象,通用转码解决

page = session.get(url="https://www.qidian.com/")

page.encoding = page.apparent_encoding

page_text =page.text

tree = etree.HTML(page_text)

相关推荐