Finish the base function and develop end announcement

This commit is contained in:
Gbanyan 2018-08-12 19:32:11 +08:00
parent 8e8fae4c53
commit 1daf908672

View File

@ -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__':