freewind
V2EX  ›  问与答

scrapy 如何提交中文参数?

  •  
  •   freewind · Sep 12, 2016 · 2193 views
    This topic created in 3705 days ago, the information mentioned may be changed or developed.
    刚学 scrapy, 现有一中文参数,后台服务器编码为 gbk
    return [FormRequest(url="http://www.example.com/post/action",
    formdata={'condition': '05▓'},
    callback=self.parse)]

    条件中有一个符号▓,这个该怎么写?
    直接这样写得不到结果
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1389 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 18:58 · PVG 02:58 · LAX 10:58 · JFK 13:58
    ♥ Do have faith in what you're doing.