Code

from bs4 import BeautifulSoup 

soup = BeautifulSoup(html,'html5lib') 

text = soup.get_text(strip = True) 

print(text)
Share this project:

Updates

Submission history