Skip to content

Instantly share code, notes, and snippets.

@natematias
Created February 17, 2018 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natematias/c802ac332b4d0c727f612361794a41b2 to your computer and use it in GitHub Desktop.
Save natematias/c802ac332b4d0c727f612361794a41b2 to your computer and use it in GitHub Desktop.
Writing python-twitter data to unicode file
all_users_info = [x._json for x in users_info]
f = codecs.open(FILENAME, mode="w", encoding="utf-8")
f.write(json.dumps(all_users_info, ensure_ascii=False))
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment