While using Python Scrapy library, Response.css is showing empty list while fetching div data?

scrapy shell ‘https://www.blibli.com/promosi/samsung-mobilephones-tablet?appsWebview=true’ fetch(‘https://www.blibli.com/promosi/samsung-mobilephones-tablet?appsWebview=true’) response.css(‘div.productset-carousel-mobile__block-item item’) [] Description: I’m trying to fetch name, price of … Read more While using Python Scrapy library, Response.css is showing empty list while fetching div data?

scrapy shell 'https://www.blibli.com/promosi/samsung-mobilephones-tablet?appsWebview=true'  
fetch('https://www.blibli.com/promosi/samsung-mobilephones-tablet?appsWebview=true')
response.css('div.productset-carousel-mobile__block-item item')
[]

Description: I’m trying to fetch name, price of products mentioned in
the url. As to get the raw data of the div class =
‘productset-carousel-mobile__block-item item’. I’m writing
response.css(‘div.productset-carousel-mobile__block-item item’) But
every time it gives empty list or goes to next line of terminal.

Now I Don’t know where I’m wrong. Right now I learning scrapy from a
youtube tutorial.

All suggestions and links to refer for clearing this concept are
warmly accepted.

Source: CSS – Stack Overflow



Leave a Reply

Your email address will not be published. Required fields are marked *