我想从
soup
对象中删除特定的
div
。
I am using
python 2.7
and
bs4
.
根据文件,我们可以使用
div.decompose()
。
但这将删除所有的
div
。我怎样才能删除一个具有特定类别的
div
?