willme105
V2EX  ›  问与答

scrapy 中文编码问题

  •  
  •   willme105 · Jan 10, 2015 · 4600 views
    This topic created in 4144 days ago, the information mentioned may be changed or developed.

    刚接触scrapy,发现这个爬虫很不错。现在有个问题,在爬中文网站的时候,总是输出Unicode,我用encode('utf-8')还是不能解决。网上找了别人的教程说这样可以解决。不知道哪里出错了。我的是mac os环境。
    谢谢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3045 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:49 · PVG 10:49 · LAX 19:49 · JFK 22:49
    ♥ Do have faith in what you're doing.