css选择器,选择指定属性的值 选择属性为href的值: <a class='test' href='www.baidu.com' >test</a> response.css('.test::attr(href)')