Scrape a Book store challenge(i got 98% accuracy)

Where i missed 2% .
my code:
import scrapy

class QuotesSpider(scrapy.Spider):
name = “bookss”

def start_requests(self):
    
    urls = [
        'http://books.toscrape.com/catalogue/page-1.html',
    ]
    
    
    for url in urls:
        yield scrapy.Request(url=url, callback=self.parse)
        
def parse(self, response):
    

        
    for q in response.css('article.product_pod'):
        img = q.css('div.image_container img ::attr(src)').get()
        book_title = q.css('div.image_container img ::attr(alt)').get()
        product_price = q.css('div.product_price p ::text').get()
    
        yield {
            'image_url':img,
            'book_title':book_title,
            'product_price':product_price,
        
        
        
        }
    
    next_page = response.css('li.next a::attr(href)').get()
    if next_page is not None:
        next_page = response.urljoin(next_page)
        yield scrapy.Request(next_page,callback=self.parse)

Hey @abhijeetcgt559. your code is completely fine, actually the solution csv, did not contain “…/” in “…/media/cache/5d/72/5d72709c6a7a9584a4d1cf07648bfce1.jpg” for the first 20 rows. But it contains “…/” for all the rest 980 rows. Actually “…/” should be present, so informed the backent team, will be updated soon.

Hope this cleared your doubt. :blush: Plz mark the doubt as resolved if you find it so in my doubts section. :sunny:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

your link is not working ,how can i rate my experience

Hey @abhijeetcgt559, yes actually we are working for the latest update, and this servce is temporarily withdrawn.
Many Thanx for your concern to provide the feedback. Happy Learning :sunny: