[Kmymoney] Online Quotes
Jan Ritzerfeld
kmymoney at mailinglists.jan.ritzerfeld.org
Mon Nov 11 15:42:13 UTC 2013
Am Montag, 11. November 2013, 12:02:52 schrieb Allan:
> On 11/11/13 11:53, Jan Ritzerfeld wrote:
> [...]
> > For funds, somehow, yes. Perhaps this works for your shares, but it
> > relies on ISINs and not WKNs. Furthermore, it assumes that the first
> > "xx,xx EUR" is
> > the current price, since there is no tag or text to find it:
> That's not the case. I gave (\d+,\d\d).<span>EUR< and that matches just
> one price entry on the site.
Okay, what I meant is that there is nothing like the "Vortag" text right
before the previous close or "Datum" text right before the date. I try HTML
stripping first, so I need some text. But you are right, "no tag" was wrong.
However, your price expressions misses the thousands separator '.', try it
on http://www.boerse-online.de/aktie/SGS_SA-Aktie :)
My good enough expression for the price is [\d\.]+,\d\d
> > Symbol ISIN\s+(\w\w\d\d\d\d\d\d\d\d\d)
ISIN\s+(\w{2}\d{10})
> > Price ([\d\.]+,\d\d) EUR
This should fail faster if they change the site again:
([\d\.]+,\d\d)\s+EUR\s+[\d\.]+,\d\d\s+EUR\s+\-?[\d\.]+,\d\d\s+\%
> [...]
Gruß
Jan
--
He who rows the boat generally doesn't have time to rock it.
More information about the KMyMoney
mailing list