【python爬虫】windoes的爬虫中文乱码现象,通用转码解决
PythonNew_Mr.Wang 人气:3page = session.get(url="https://www.qidian.com/") page.encoding = page.apparent_encoding page_text =page.text tree = etree.HTML(page_text)
加载全部内容
page = session.get(url="https://www.qidian.com/") page.encoding = page.apparent_encoding page_text =page.text tree = etree.HTML(page_text)
加载全部内容