On 01/02/13 15:53, David Houlden wrote:
On Friday 01 February 2013 15:01:22 Allan wrote:
On 27/01/13 12:01, Juan Antonio Mariano wrote:
Some time ago Yahoo decided to stop providing online quotes for stocks
in Spain. Since then I've trying to setup a new source of info with no
success. I have managed to get to the page containing the info, for
example (
http://www.bolsamadrid.es/esp/aspx/Empresas/FichaValor.aspx?ISIN=ES016705
0915). But I am unable to get quote or date. Can you please help me?

Thank you very much.

Juan.

Hi Thomas

I've been looking into this problem, and have tried quite a few
different sources, without success, because the needed data is getting
filtered out.

However, I have found success with one, but at the cost of removing a
code line from webpricequote.cpp.  I use Morningstar myself and that
seems not to be upset.

The line is 229,
// HTML tags
        quotedata.remove(QRegExp("<[^>]*>"));

Do you foresee difficulties for others?  I'll try some more testing anyway

Allan


Hi Allan,
I might be missing something here but isn't that what "Skip HTML Stripping" is
for in the KMyMoney settings for Online Quotes?

Dave.

It's funny you should say that...

The very first thing I tried was "Skip HTML Stripping", and it made no difference. I got the impression that it didn't do what I expected, and that it had effect only at the head of the document. I tried several different sources to no avail. I was assuming the problem was with the QRegEx matching, but found that the data was missing before it got to that part. There were two or three stages of filtering before them. Trying yet another source, I eventually made progress and I pinpointed that statement as being the problem, and then sorted out the QRegEx matching.

What I didn't do though is retry "Skip HTML Stripping", and, yes, as it says on the tin, that does do what I wanted it to do. The line I blamed must be for some local trimming if "Skip HTML Stripping" is not set.

Thanks for restoring sanity.

Allan

_______________________________________________
KMyMoney-devel mailing list
KMyMoney-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmymoney-devel

Reply via email to