From 1daf9086721412b28931d70d4849feedc021c0e1 Mon Sep 17 00:00:00 2001 From: Gbanyan Date: Sun, 12 Aug 2018 19:32:11 +0800 Subject: [PATCH] Finish the base function and develop end announcement --- Main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__':