35
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

scrapyのJSON出力を日本語にする方法

Posted at

scrapyで日本語を含むページをクロールすると、その結果のJSONに\uXXXXという文字列が大量に埋め込まれてしまいます。
これを防ぐためには、settings.pyに以下のように書きましょう。

FEED_EXPORT_ENCODING='utf-8'

参考
https://doc.scrapy.org/en/latest/topics/feed-exports.html#feed-export-encoding

35
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
35
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?