bs4.PageElement.extract

PageElement.extract()[source]

Destructively rips this element out of the tree.