Update price retrieval

This commit is contained in:
Gabriel Augendre 2021-06-23 20:19:54 +02:00
parent f133c182f9
commit 2881f985e7
1 changed files with 1 additions and 1 deletions

View File

@ -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()