<div dir="ltr">worked. thank you list and thomas :))<br><br><img src="cid:ii_15fbb2a38702a8bc" alt="內置圖片 1" width="471" height="446"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-14 23:25 GMT+08:00 Thomas Baumgart <span dir="ltr"><<a href="mailto:thb@net-bembel.de" target="_blank">thb@net-bembel.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
, as of (\w+\s\d+\s\d+^([0-9]|0[0-9]|<wbr>1[0-9]|2[0-3]):[0-5][0-9]$)GMT<br>
<br>
That is pretty complex. You need to replace '^' and '$' with a blank and<br>
rearrange the parens a bit, so<br>
<br>
, as of (\w+\s\d+\s\d+)\s([0-9]|0[0-9]<wbr>|1[0-9]|2[0-3]):[0-5][0-9]\<wbr>sGMT<br>
<br>
should do better. You only need to catch the date, not the time though it<br>
could be useful for matching.<br>
<br>
Hope that helps<br>
<br>
Regards<br>
<br>
Thomas<br>
<br>
On Dienstag, 14. November 2017 23:09:33 CET Andy Chung wrote:<br>
<br>
> Hi all,<br>
><br>
> I am having problem with etf VNQ not avail in google finance so tried the FT<br>
><br>
> (a) url change from fund to etf (success)<br>
> <a href="https://markets.ft.com/data/etfs/tearsheet/summary?s=%1" rel="noreferrer" target="_blank">https://markets.ft.com/data/<wbr>etfs/tearsheet/summary?s=%1</a><br>
> <a href="https://markets.ft.com/data/etfs/tearsheet/summary?s=VNQ" rel="noreferrer" target="_blank">https://markets.ft.com/data/<wbr>etfs/tearsheet/summary?s=VNQ</a><br>
><br>
> (b) price change to catch USD (success)<br>
> Price \(USD\)</span><span class="mod-ui-data-list__<wbr>value">(\d+\.\d+)</span><br>
><br>
> Price (USD)</span><span class="mod-ui-data-list__<wbr>value">85.36</span><br>
><br>
> (c) am having problem with catching time where hh:mm GMT is present (failed)<br>
> , as of (\w+\s\d+\s\d+^([0-9]|0[0-9]|<wbr>1[0-9]|2[0-3]):[0-5][0-9]$)<wbr>GMT.</div><br>
><br>
> , as of Nov 14 2017 01:00 GMT.</div><br>
><br>
> help appreciated for (c) catching date time<br>
><br>
> 2017-11-14 6:35 GMT+08:00 Geza Giedke <<a href="mailto:geza.giedke@gmail.com">geza.giedke@gmail.com</a>>:<br>
> > thanks a lot, with your tips I got it to work:<br>
> ><br>
> > either using<br>
> > <a href="http://www.boerse-berlin.com/index.php/Funds?isin=%1" rel="noreferrer" target="_blank">http://www.boerse-berlin.com/<wbr>index.php/Funds?isin=%1</a><br>
> > with<br>
> ><br>
> > Price: Last</div><div class=".+"><span<br>
> > class="currency">EUR</span><<wbr>span class="nc<br>
> > id_\d+_last">(\d+.\d+)</span><br>
> > Date: Date</div><div class=".+"><span class="nc<br>
> > id_\d+_dateTime">(\d+/\d+/\d+)<wbr></span><br>
> > Date format: %d %m %y<br>
> ><br>
> > or using<br>
> > <a href="https://markets.ft.com/data/funds/tearsheet/summary?s=%1" rel="noreferrer" target="_blank">https://markets.ft.com/data/<wbr>funds/tearsheet/summary?s=%1</a><br>
> > with<br>
> > Price: Price \(EUR\)</span><span<br>
> > class="mod-ui-data-list__<wbr>value">(\d+\.\d+)</span><br>
> > Date: , as of (\w+\s\d+\s\d+)\.</div><br>
> > Date Format: %m %d %y<br>
> ><br>
> > works for me for all the funds not available in <a href="http://finance.google.com" rel="noreferrer" target="_blank">finance.google.com</a><br>
> ><br>
> > Thanks again!<br>
> ><br>
> > best regards<br>
> ><br>
> >  Geza<br>
> ><br>
> > On Mon, Nov 13, 2017 at 9:51 AM, Thomas Baumgart <<a href="mailto:thb@net-bembel.de">thb@net-bembel.de</a>><br>
> ><br>
> > wrote:<br>
> > > Geza,<br>
> > ><br>
> > > looking at the source of the page, I can see<br>
> > ><br>
> > >    Price (EUR)</span><span class="mod-ui-data-list__<wbr>value">11.13</span><br>
> > ><br>
> > > which needs to be caught by the regex for the price. I would use<br>
> ><br>
> > something<br>
> ><br>
> > > like<br>
> > ><br>
> > >    Price.*</span><span class="mod-ui-data-list__<wbr>value">([\d\.]+)</span><br>
> > ><br>
> > > The date can be found here:<br>
> > >    , as of Nov 10 2017.</div><br>
> > ><br>
> > > and a corresponding regex would look like<br>
> > ><br>
> > >    , as of (\w+\s\d+\s\d+)\.<div><br>
> > ><br>
> > > The date format then is<br>
> > ><br>
> > >     %m %d %y<br>
> > ><br>
> > > You need to activate the option "Skip HTML stripping" as parts of the<br>
> ><br>
> > regexes<br>
> ><br>
> > > rely on the HTML tags which would otherwise not be present.<br>
> > ><br>
> > > Your mileage may vary as I have not tested any of these.<br>
> > ><br>
> > > To get to the source: Firefox has an option which is called 'View page<br>
> ><br>
> > source'<br>
> ><br>
> > > or you can use 'wget' or 'curl' to download the page into a file on your<br>
> ><br>
> > local<br>
> ><br>
> > > system.<br>
> > ><br>
> > > Hope that helps.<br>
> > ><br>
> > > Regards<br>
> > ><br>
> > > Thomas<br>
> > ><br>
> > > On Sonntag, 12. November 2017 21:46:47 CET Geza Giedke wrote:<br>
> > >> thanks Jeff and Salvatore for your help; now I can use<br>
> > >> <a href="http://finance.google.com" rel="noreferrer" target="_blank">finance.google.com</a> for all stocks and most funds (both date and price<br>
> > >> are imported correctly).<br>
> > >> But some funds are not available there, but, for example, here:<br>
> > >><br>
> > >> <a href="http://www.boerse-berlin.com/index.php/Funds?isin=LU0069450319" rel="noreferrer" target="_blank">http://www.boerse-berlin.com/<wbr>index.php/Funds?isin=<wbr>LU0069450319</a><br>
> > >><br>
> > >> or here:<br>
> > >><br>
> > >> <a href="https://markets.ft.com/data/funds/tearsheet/summary?s=LU0069450319:EUR" rel="noreferrer" target="_blank">https://markets.ft.com/data/<wbr>funds/tearsheet/summary?s=<wbr>LU0069450319:EUR</a><br>
> > >><br>
> > >> While I think I get KMM to access the correct page, I've not managed<br>
> > >> to extract the data properly: I've tried to follow<br>
> > >> <a href="http://doc.qt.io/qt-4.8/qregexp.html#1" rel="noreferrer" target="_blank">http://doc.qt.io/qt-4.8/<wbr>qregexp.html#1</a> (as linked in the KMM Online<br>
> > >> help), but my construction (for Boerse Berlin) of<br>
> > >> Price: LastEUR.(\d+.\d+)<br>
> > >> and<br>
> > >> Date: Date.(\d+\D+\d+\D+\d+)<br>
> > >> does not work ("Unable to update price for LU0069450319 (no price or no<br>
> > >> date)").<br>
> > >><br>
> > >> I wonder if I don't understand the regexps properly or if the text<br>
> > >> with "all HTML tags removed" that the parser works on looks different<br>
> > >> than I think. How could I get the file that is sent to the page<br>
> > >> parser?<br>
> > >><br>
> > >> thanks a lot and best regards<br>
> > >><br>
> > >>  Geza<br>
> > >><br>
> > >> On Sun, Nov 12, 2017 at 12:49 AM, Salvatore Dimartino<br>
> > >><br>
> > >> <<a href="mailto:saldimartino@yahoo.ca">saldimartino@yahoo.ca</a>> wrote:<br>
> > >> > I have used the following settings:<br>
> > >> ><br>
> > >> > For stock quotes I created a new entry called GoogleFinance with the<br>
> > >> > following parameters:<br>
> > >> ><br>
> > >> > URL: <a href="https://finance.google.com/finance?q=%1" rel="noreferrer" target="_blank">https://finance.google.com/<wbr>finance?q=%1</a><br>
> > >> > Symbol: %1<br>
> > >> > Price: "price"\s+content="((\d+|\d{1,<wbr>3}(?:[,]\d{3})).\d+)<br>
> > >> > Date: "quoteTime"\s+content="(\d{4}-<wbr>\d{2}-\d{2})T<br>
> > >> > Date Format: %y-%m-%d<br>
> > >> ><br>
> > >> > Also, because almost all of my stocks are listed on the TSX in<br>
> ><br>
> > Canada, I<br>
> ><br>
> > >> > had to modify my stocks with new tickers as follows:<br>
> > >> ><br>
> > >> > I changed for example for Bell Canada <a href="http://BCE.TO" rel="noreferrer" target="_blank">BCE.TO</a> to TSE:BCE, I had to do<br>
> ><br>
> > this<br>
> ><br>
> > >> > for all my stocks.<br>
> > >> ><br>
> > >> ><br>
> > >> > For currency conversion I modified  Yahoo Currency with the following<br>
> > >> > parameters:<br>
> > >> ><br>
> > >> > URL: <a href="https://finance.google.com/finance?q=%1%2" rel="noreferrer" target="_blank">https://finance.google.com/<wbr>finance?q=%1%2</a><br>
> > >> > Symbol: %1%2<br>
> > >> > Price: "price"\s+content="((\d+|\d{1,<wbr>3}(?:[,]\d{3})).\d+)<br>
> > >> > Date: "quoteTime"\s+content="(\d{4}-<wbr>\d{2}-\d{2})T<br>
> > >> > Date Format: %y-%m-%d<br>
> > >> ><br>
> > >> > Also, I run KmyMoney on Windows machines, I then copied<br>
> > >> > c:\user\sal\AppData\Roaming\.<wbr>kde\share\config\kmymoneyrc<br>
> > >> > onto all the other windows machines I have, so that I didn't have to<br>
> ><br>
> > redo<br>
> ><br>
> > >> > this work on all my machines.<br>
> > >> ><br>
> > >> > Regards<br>
> > >> > Sal Dimartino<br>
> > >> ><br>
> > >> ><br>
> > >> > On Saturday, November 11, 2017, 4:41:43 PM EST, Geza Giedke<br>
> > >> > <<a href="mailto:geza.giedke@gmail.com">geza.giedke@gmail.com</a>> wrote:<br>
> > >> ><br>
> > >> ><br>
> > >> > yes, the tip to use <a href="http://finance.google.com" rel="noreferrer" target="_blank">finance.google.com</a> for currency also works for me<br>
> > >> > (KMM 4.7.2).<br>
> > >> ><br>
> > >> > Has somebody figured out how to also get quotes for stocks, funds etc<br>
> > >> > via <a href="http://finance.google.com" rel="noreferrer" target="_blank">finance.google.com</a>? What's the logic behind the syntax used for<br>
> > >> > "symbol", "price", and "date" in the settings?<br>
> > >> ><br>
> > >> > regards<br>
> > >> > Geza<br>
> > >> ><br>
> > >> > On Sun, Nov 5, 2017 at 7:18 AM, timothy <<a href="mailto:timboyle@afrihost.co.za">timboyle@afrihost.co.za</a>><br>
> ><br>
> > wrote:<br>
> > >> >> The solution given in the link @ comment #15 by Thomas works fine.<br>
> > >> >> Just go to Settings / Configure Kmymoney / Online Quotes and<br>
> ><br>
> > reconfigure<br>
> ><br>
> > >> >> 'Yahoo Currency'<br>
> > >> >> as per link.<br>
> > >> >><br>
> > >> >><br>
> > >> >> Works fine on 4.8.1. Thanks Thomas.<br>
> > >> >><br>
> > >> >> Timothy<br>
> > >> >><br>
> > >> >> On Sat, 2017-11-04 at 07:20 +0000, Thomas Baumgart wrote:<br>
> > >> >>> <a href="https://bugs.kde.org/show_bug.cgi?id=386462" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.<wbr>cgi?id=386462</a><br>
> > >> >>><br>
> > >> >>> --- Comment #15 from Thomas Baumgart <<a href="mailto:tbaumgart@kde.org">tbaumgart@kde.org</a>> ---<br>
> > >> >>> Please see<br>
> > >> >>> <a href="https://forum.kde.org/viewtopic.php?f=69&t=142715&p=383426#p383426" rel="noreferrer" target="_blank">https://forum.kde.org/<wbr>viewtopic.php?f=69&t=142715&p=<wbr>383426#p383426</a><br>
> > >> >>> for a possible workaround.<br>
> > ><br>
> > > --<br>
> > ><br>
> > > Regards<br>
> > ><br>
> > > Thomas Baumgart<br>
> > ><br>
> > > <a href="https://www.telegram.org/" rel="noreferrer" target="_blank">https://www.telegram.org/</a>       Telegram, the better WhatsApp<br>
> > > ------------------------------<wbr>------------------------------<wbr>-<br>
> > > Why do programmers wear glasses?<br>
> > > Cause they don't C#.<br>
> > > ------------------------------<wbr>------------------------------<wbr>-<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
Regards<br>
<br>
Thomas Baumgart<br>
<br>
<a href="https://www.telegram.org/" rel="noreferrer" target="_blank">https://www.telegram.org/</a>       Telegram, the better WhatsApp<br>
------------------------------<wbr>------------------------------<wbr>-<br>
Q: Do you know the golden rule?<br>
A: The rules are made by those who own the gold!<br>
-- Frank Stornach<br>
------------------------------<wbr>------------------------------<wbr>-<br>
</font></span></blockquote></div><br></div>