Я пробовал soup.find('! -'), но он не работает. Заранее спасибо.
Изменить: Спасибо за подсказку о том, как найти все комментарии. У меня есть следующий вопрос. Как конкретно искать комментарий?
Например, у меня есть следующий тег комментария:
<!-- <span class="titlefont"> <i>Wednesday 110518</i>(05:00PM)<br /></span> -->
Я просто хочу этот материал <i>Wednesday 110518</i>
. "110518" - это дата YYMMDD, на которую я склонен использовать мою цель поиска. Однако я не знаю, как найти что-то в пределах определенного тега комментария.