I want to delete the specific div from soup object.
I am using python 2.7 and bs4.
According to documentati
Hope it help:
from bs4 import BeautifulSoup
from bs4.element import Tag
markup = 'This is not div This is div 1This is div 2'
soup = BeautifulSoup(markup,"html.parser")
for tag in soup.select('div.1'):
tag.decompose()
print(soup)