AR
Size: a a a
AR
AR
AR
AR
AR
AR
AR
A
def parse(self, response):
links = response.xpath('//*[@id="offers_table"]/tbody/tr/td/div/table/tbody/tr[1]/td[1]//a/@href').getall()
yield from response.follow_all(links, self.parse_data)
def parse_data(self, response):
text = response.xpath('//*[@id="offerdescription"]/div[1]/h1//text()').get()
price = response.xpath('//*[@id="offerdescription"]/div[1]/div[2]/div/strong//text()').get()
yield {
'Auto': car_brand,
'Type ad': type_ad,
}
AR
A