🎱
Size: a a a
🎱
AR
AR
A
shell
- все ок, данные собираются со всех страниц A
for pages in range(2):
yield {
'Text': response.css('div > p > a::attr(title)').getall(),
'Link': response.css('p > a::attr(href)').getall(),
'Price': [price.strip() for price in response.css('span.price-value::text').getall() if price.count(' ') > 30]
}
sleep(15)
scroll_next = self.driver.find_element_by_css_selector(".category-pager")
self.driver.execute_script("arguments[0].scrollIntoView();", scroll_next)
sleep(5)
next_page = self.driver.find_element_by_css_selector(".category-pager > div:nth-child(1) > div:nth-child(3) > ul:nth-child(1) > li:nth-child(7) > a:nth-child(1)")
next_page.click()
sleep(5)
A
AR
A
AR
A
A
AR