这是兄弟/属性
<h3 class="title-and-badge style-scope ytd-video-renderer">
<ytd-badge-supported-renderer class="style-scope ytd-video-renderer" disable-upgrade="" hidden="">
</ytd-badge-supported-renderer>
<a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label="Using XPath to Locate Web Elements - in very detail by ABSoft Trainings 2 years ago 16 minutes 65,931 views" href="/watch?v=0ywu269mNyo" title="Using XPath to Locate Web Elements - in very detail">
Using XPath to Locate Web Elements - in very detail
</a>
</h3>
我使用:=importxml (A1, "//h3[@ class='yt-lockup-title']")
来提取标题,但我会在视频的持续时间内获得一个额外的列。我只想要标题......
这是我的结果: 表和XML - 使用Beautiful Soup进行Web抓取4 p.3 - 持续时间:8:40。
我不希望持续时间 有什么建议吗?