选择属性为href的值: <a class='test' href='www.baidu.com' >test</a> response.css('.test::attr(href)') 转载于:https://www.cnblogs.com/chenxi188/p/10845104.html