【发布时间】:2017-10-19 08:47:49
【问题描述】:
参考beautiful soup just get the value inside the tag,我尝试将此代码传输到我的 HTML 标记(见下文),但不幸的是,我还没有找到解决方案。这是我的 HTML 示例:
<div id="city" class="temperature">29</div>
我想刮取温度值(= 29)。有什么提示吗?
谢谢!
【问题讨论】:
标签: python python-2.7 beautifulsoup