[O] Allow non-ascii in json

This commit is contained in:
Hykilpikonna
2021-11-21 21:34:43 -05:00
parent 523dc813a5
commit ba7fb3919b
+1 -1
View File
@@ -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))