Fix missing write setting on file
This commit is contained in:
parent
340feaa7ed
commit
e61a31154f
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue