diff --git a/Main.py b/Main.py index 1dfb94e..f622795 100644 --- a/Main.py +++ b/Main.py @@ -43,7 +43,7 @@ def ouput_html(item): soup = BeautifulSoup(article_full_content["data"]["printHtml"], 'html5lib') prettyHTML = BeautifulSoup(soup.prettify(), 'html5lib') content = str(prettyHTML.find(id="topicContent")) - with open(item + ".html", "w") as file: + with open("test/" + item + ".html", "w") as file: file.write(content) if __name__ == '__main__':