search

Home  >  Q&A  >  body text

python爬虫编码问题

测试
python爬虫爬到的中午都是这种形式,用HTMLParser().unescape可以转为中文,但是也把原字符串的=>实体也转为html标签了,怎么解决这个问题
PHPzPHPz2892 days ago305

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:28:28

    Is it resolved?
    I also used a similar function, but changed the function because I only needed to change the text part.

    reply
    0
  • Cancelreply