From ba7fb3919bf88ec081843e3752984ed8c2ad8b17 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 21 Nov 2021 21:34:43 -0500 Subject: [PATCH] [O] Allow non-ascii in json --- collect/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collect/twitter.py b/collect/twitter.py index b83fc11..30dcc46 100644 --- a/collect/twitter.py +++ b/collect/twitter.py @@ -112,7 +112,7 @@ def download_user_tweets(api: API, screen_name: str) -> None: # Store in file with open(dir_raw + screen_name + '.json', 'w') as f: - f.write(json.dumps([t._json for t in tweets], indent=1)) + f.write(json.dumps([t._json for t in tweets], indent=1, ensure_ascii=False)) with open(dir + screen_name + '.json', 'w') as f: f.write(json_stringify(postings))