scrapy get nth-child text of same class
问题 I've attached a picture. The problem I'm facing is that getting the first element of same class. I'm trying to get .adxHeader > .adxExtraInfo (1st one) > .adxExtraInfoPart (1st one) > a::text I wrote the following code but not working. Any Idea? response.css('div.adxViewContainer div.adxHeader div.adxExtraInfo:nth-child(1) div.adxExtraInfoPart:nth-child(1) a::text').extract_first() expected output: الرياض <div class="adxHeader"> <h3 itemprop="name"> » درج داخلي للاجار جديد حي المونسيه</h3>