04-05 css selectors nxt page link url

1

get books then frist book

books = response.css('article.product_pod')
book = books[0]

Test getting stuff from all on one books, first get title

book.css('h3 a::test').get()

Get Price

book.css('.product_price .price_color::text').get()

1

We want to get the link that open the page of the products,

The a href link is also on the ('h3 a') but we want .attrib['href']

book.css('h3 a').attrib['href']