【发布时间】:2018-09-08 05:45:34
【问题描述】:
我正在尝试使用 BeautifulSoup4 废弃一些 html 文档,但我一直在尝试废弃这个 div:
<div class="small-info" style="margin-top: 4px;">
5
<sup>th</sup>
August 2018
</div>
我想获得“2018 年 8 月 5 日”,我该怎么做?
【问题讨论】:
标签: python web-scraping beautifulsoup