Fix missing write setting on file

This commit is contained in:
Tristan Daniël Maat 2022-04-09 18:58:40 +01:00
parent 340feaa7ed
commit e61a31154f
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -38,7 +38,7 @@ def main():
print(f"Downloading {link[0]} ({i}/{len(links)})")
text = download_article_text(link[0])
with open(f"articles-qinghai/{link[1]}_{i}.txt") as f:
with open(f"articles-qinghai/{link[1]}_{i}.txt", "w+") as f:
f.write(text)