如何获取this page上此“h2”标题的所有“href”属性?在
<h2 class="entry-title">
<a href="http://www.allitebooks.com/deep-learning-with-python-2/" rel="bookmark">Deep Learning with Python</a>
</h2>
我尝试的方法没有得到href,是:
^{pr2}$这没有得到“a”标签的链接。如果我在“a”标记上查找所有元素,它将返回页面上的每个href(这不是我想要的)。我只想返回上述标题,但能够得到他们的url“href”属性。在
以下代码从所有页面获取所有书籍:
硒对你所需要的可能有点过头了,好的老美容师也能做到这一点。在
相关问题 更多 >
编程相关推荐