Browse Source

artwork desc bit cleaner

master
jules 4 years ago
parent
commit
3fd9c29c6b
  1. 8
      daapinterface.py

8
daapinterface.py

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

Loading…
Cancel
Save