Added support for more languages (UTF-8)

This commit is contained in:
Amit Y 2020-04-14 16:14:33 +03:00
parent 3cb987c25b
commit 67f2be02f6

View file

@ -94,7 +94,7 @@ def image_downloader(img_links, folder_name):
def extract_and_write_posts(elements, filename):
try:
f = open(filename, "w", newline="\r\n")
f = open(filename, "w", newline="\r\n", encoding="utf-8")
f.writelines(
" TIME || TYPE || TITLE || STATUS || LINKS(Shared Posts/Shared Links etc) "
+ "\n"