artwork desc bit cleaner

This commit is contained in:
jules 2020-11-15 19:19:29 +01:00
parent c928662896
commit 3fd9c29c6b

View File

@ -338,8 +338,8 @@ def artwork():
# Parse the html content
soup = BeautifulSoup(html_content, "lxml")
# print(soup.prettify()) # print the parsed data of html
# text=soup.find("div" , {"class" : "mw-parser-output"})
text=soup.find_all("p")
text=soup.find("div" , {"class" : "mw-parser-output"})
# text=soup.find_all("p")
artworkdescriptiontext=Markup(text)
print(artworkdescriptiontext)
@ -370,8 +370,8 @@ def artwork():
soup = BeautifulSoup(html_content, "lxml")
# print(soup.prettify()) # print the parsed data of html
# text=soup.find("div" , {"class" : "mw-parser-output"})
text=soup.find_all("p")
text=soup.find("div" , {"class" : "mw-parser-output"})
# text=soup.find_all("p")
artworkexhibitiontext=Markup(text)
# print(artworkexhibitiontext)