Finish the base function and develop end announcement
This commit is contained in:
parent
8e8fae4c53
commit
1daf908672
2
Main.py
2
Main.py
@ -43,7 +43,7 @@ def ouput_html(item):
|
|||||||
soup = BeautifulSoup(article_full_content["data"]["printHtml"], 'html5lib')
|
soup = BeautifulSoup(article_full_content["data"]["printHtml"], 'html5lib')
|
||||||
prettyHTML = BeautifulSoup(soup.prettify(), 'html5lib')
|
prettyHTML = BeautifulSoup(soup.prettify(), 'html5lib')
|
||||||
content = str(prettyHTML.find(id="topicContent"))
|
content = str(prettyHTML.find(id="topicContent"))
|
||||||
with open(item + ".html", "w") as file:
|
with open("test/" + item + ".html", "w") as file:
|
||||||
file.write(content)
|
file.write(content)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user