如何在python中选择span类标记的内容

时间:2017-12-15 06:27:24

标签: python beautifulsoup

<span class="labels">
            <a href="/misp/securehomegateway-router/issues?q=is%3Aopen+is%3Apr+label%3AHCL" class="label v-align-text-top labelstyle-006b75 linked-labelstyle-006b75" style="background-color: #006b75; color: #fff;" title="Label: HCL">HCL</a>
        </span>
      <div class="mt-1 text-small text-gray">
        <span class="opened-by">
          #405
            opened <relative-time datetime="2017-12-14T06:30:48Z">Dec 14, 2017</relative-time> by
            <a href="/misp/securehomegateway-router/issues?q=is%3Apr+is%3Aopen+author%3Assen" class="muted-link" title="Open pull requests created by ssen">ssen</a>

        </span>

我想访问日期时间。我怎么能这样做?

0 个答案:

没有答案