import scrapy
class ExampleSpider(scrapy.Spider):
name = 'price_ozon'
allowed_domains = ['price_ozon']
start_urls = ['
https://www.ozon.ru/category/nozhi-i-aksessuary-11463/']
def parse(self, response):
for div in response.xpath('.//div[
@class="a8p8 a8q6 a8q"]'): #response.xpath('//div[
@calss="a8p8.a8q6.a8q"]').getall(): response.css('div.b4z9'):
#print('123')
link=div.xpath('.//div[
@class="bn6 bn9"]')
tittle = div.xpath('.//span[
@class="bx7 by"]/text()').get()
yield {
'tittle': tittle,
}
тоже самое 😩