Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

beautifulsoup remove tag with class

#If you want to remove a div with a specific id, say main-content, you can do that with
soup.find('div', id="main-content").decompose()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #beautifulsoup #remove #tag #class
ADD COMMENT
Topic
Name
4+5 =