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"]'):
print('123')
link=div.xpath('//div[
@class="bn6 bn9"]')
tittle = link.xpath('//span[
@class="bx7 by"]/text()').get()
yield {
'tittle': tittle,
}