HTML = '
<div class="box">
<div id="grid">
<div class="content">hello</div>
</div>
</div>
'
--stuff happens here--
response.css('div.thread [*] div.mix').getall()
*how do I search for divs without a class? No matter what suggestion I find online I keep getting the error "expected something got delim..."
You need to use # for an id attribute:
response.css('div#grid')
Or you can select it by attribute notation:
response.css('div[id="grid"]')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With