[Solved] Where are my mistakes in my scrapy codes?


The main issue with your code is using of .select instead of .css. Here is what do you need but I’m not sure about titles part (may be you need it on other pages):

def parse(self, response):
    titles = response.xpath("//div[@class="artist"]")
    # items = []
    for title in titles:
        item = ArtistlistItem()
        item["artist"] = title.css("h2::text").get()
        item["biograpy"] = title.css("p::text").get()
        # items.append(item)
        yield item

2

solved Where are my mistakes in my scrapy codes?