soup = BS(html, 'html.parser')
comments = soup.find_all(string=lambda text: isinstance(text, Comment))
for c in comments:
    print(c)
print('===========')
c.decompose()
Как найти все комментарии с Beautiful Soup