相关疑难解决方法(0)

python scrapy使用css选择器获取href

我想获得href值.

我试过这个:

<span class="title">
  <a href="https://www.example.com"></a>
</span>
Run Code Online (Sandbox Code Playgroud)

但我只是得到了里面的文字href.

我怎么能得到href里面的链接

python scrapy python-2.7

35
推荐指数
2
解决办法
3万
查看次数

标签 统计

python ×1

python-2.7 ×1

scrapy ×1