Skip to content
masterclass Buddy

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.

Subscribe
  • scrapy.Selector
  • SelectorList
  • response.xpath()
  • Selector.attrib
  • Selector.re()
  • Selector.re_first()

Source: Selectors — Scrapy 2.19.0 documentation. Checked 2026-11-03.