Scrapy · Method
response.css
Use response.css() to select HTML elements in a Scrapy callback. Use ::text or ::attr(name) to select text or attributes, then call get() or getall() to extract values.
Last updated
Syntax
response.css(query)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
scrapy.SelectorSelectorListresponse.xpath()Selector.attribSelector.re()Selector.re_first()