Answers for "beautifulsoup drop tag"

0

beautifulsoup drop tag

soup = BeautifulSoup('<p>This is a slimy text and <i> I am slimer</i></p>')
soup.i.decompose()
print str(soup)
#prints '<p>This is a slimy text and</p>'
Posted by: Guest on May-15-2021

Code answers related to "beautifulsoup drop tag"

Browse Popular Code Answers by Language