How to download any(!) webpage with correct charset in python?

前端 未结 7 1865
醉酒成梦
醉酒成梦 2020-11-30 20:16

Problem

When screen-scraping a webpage using python one has to know the character encoding of the page. If you get the character encoding wrong th

相关标签:
7条回答
  • 2020-11-30 21:14

    I would use html5lib for this.

    0 讨论(0)
提交回复
热议问题