From 2881f985e705a2d5a2ba97d5b573473b4495e1ce Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 23 Jun 2021 20:19:54 +0200 Subject: [PATCH] Update price retrieval --- manuels/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuels/models.py b/manuels/models.py index 50b822f..473432f 100644 --- a/manuels/models.py +++ b/manuels/models.py @@ -352,7 +352,7 @@ class Book(BaseModel): authors = authors[0] authors = authors.get_text(strip=True) - price = decitre_soup.select('div.price span.final-price') + price = decitre_soup.select('.fp-top--add-to-cart div.price span.final-price') if price: price = price[0] price = price.get_text().replace('€', '').replace(',', '.').strip()