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.
该站点的内容是动态的,因此您不能使用xhr访问它们。但是,有一个api包含与您所追求的内容相同的内容。以下是如何从登录页中刮取产品名称及其所属类别。请随意添加其他相关字段
相关问题 更多 >
编程相关推荐