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

Problem with CHF and ' #61

Open bsekiewicz opened 1 year ago

bsekiewicz commented 1 year ago

I noticed that for the Swiss Franc (CHF) for values above 1,000, the notation CHF 1'000 is used.

parse_price("CHF 1'200.20")
Out[27]: Price(amount=Decimal('1'), currency='CHF')