View Single Post
Old 02-27-2011, 07:06 AM   #3
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Yeah, that France example is another of where it will possibly go wrong.

I don't know where in the chain it is breaking down. What I don't understand is why on both our machines our web browsers are rendering exactly the same result of "3.42", yet via the Python libraries to scrape the html it is ending up as "342" on his but "3.42" on mine.

If there isn't an obviously clever way of handling this I'll just stick with a crude approach such as stripping out all non-numeric characters and then dividing by 100.
kiwidude is offline   Reply With Quote