scrapinghub / price-parser

Extract price amount and currency symbol from a raw text string
BSD 3-Clause "New" or "Revised" License
316 stars 50 forks source link

Bug non break space. #39

Closed maranqz closed 4 years ago

maranqz commented 4 years ago

Some store show price with non-break space and parser return None.

lopuhin commented 4 years ago

could you please provide some sample input @maranqz?

maranqz commented 4 years ago

from price_parser import Price

price = Price.fromstring("1 298,00") # 1 298,00
print(price.amount)