【发布时间】:2020-04-03 20:06:54
【问题描述】:
我正在使用 BeautifulSoup 并在一个网站上工作
我有一个没有 ID 的 div 元素,我想获取 div 中的内容并将其存储在变量中
Eg: "Last updated: April 03, 2020, 03:34 GMT"
这是 div 元素:
<div style="font-size:13px; color:#999; text-align:center">Last updated: April 03, 2020, 03:34 GMT</div>
有人可以帮我解决这个问题吗?提前致谢
【问题讨论】:
-
最后更新时间:2020 年 4 月 3 日,格林威治标准时间 03:34
标签: html python-3.x web-scraping beautifulsoup