【发布时间】:2022-01-12 20:16:51
【问题描述】:
无法弄清楚如何在 python 脚本中使用 selenium 来提取跨度文本内容:RSB - 12498 从显示的 html 中。请帮忙。谢谢。
<div _ngcontent-pfw-c3="" class="strip_list wow fadeIn animated" style="visibility: visible; animation-name: fadeIn;"><figure _ngcontent-pfw-c3=""><a _ngcontent-pfw-c3="" href="detail-page.html"><img _ngcontent-pfw-c3="" alt="" src="http://via.placeholder.com/565x565.jpg"></a></figure><small _ngcontent-pfw-c3=""><!----><!----><span _ngcontent-pfw-c3=""> RSB - 12498</span>
【问题讨论】:
-
你能分享一个指向这个元素所在页面的链接吗?
-
为了唯一正确地定位这个元素,我们需要查看整个页面的 HTML
-
@Prophet search.cac.gov.ng/list 。我正在尝试从随机搜索中抓取
-
我没有看到
RSB - 12498甚至12498那里 -
或者我需要在那里搜索一下?
标签: python html css selenium web