0

这是兄弟/属性

<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']")拉标题,但我得到了一个额外的列,其中包含视频的持续时间。我只想要标题...

这是我的结果:Tables and XML - Web scraping with Beautiful Soup 4 p.3 - 持续时间:8:40。

我不想要任何建议的持续时间?

4

0 回答 0