Update price retrieval
This commit is contained in:
parent
f133c182f9
commit
2881f985e7
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue