Text-Decompose
Sat 17 May 2025
title: "Text Decompose" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false
import requests
from bs4 import BeautifulSoup
soup = BeautifulSoup('<p>This is a slimy text and <i> I am slimer</i></p>')
soup.i.decompose()
print(soup.text)
This is a slimy text and
Score: 0
Category: webreader