Bug 447569 - Issues with online course updates
Summary: Issues with online course updates
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-27 11:50 UTC by wolle
Modified: 2021-12-28 14:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-23670-0.html (2.36 KB, text/html)
2021-12-27 19:22 UTC, wolle
Details
attachment-2301-0.html (3.45 KB, text/html)
2021-12-28 14:56 UTC, wolle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wolle 2021-12-27 11:50:23 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
/usr/share/kmymoney/misc/financequote.pl unionfunds 975011 wird ausgeführt ...
Preis für 975011 kann nicht aktualisiert werden (kein Preis oder kein Datum)
or
Adresse http://funds.ft.com/uk/Tearsheet/Summary?s=975011 wird geholt ...
Symbol gefunden: 
Preis für 975011 kann nicht aktualisiert werden (kein Preis oder kein Datum)

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: OpenSuse Leap 15,3
(available in About System)
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.76.0
Qt Version: 5.12.7

ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2021-12-27 15:37:53 UTC
Looks to me if FT has changed their interface. Do you get the correct information if you open the provided link in a web-browser? Which URL do you need to specify to get the information from the web-site?
Comment 2 wolle 2021-12-27 19:22:08 UTC
Created attachment 144899 [details]
attachment-23670-0.html

Hallo Herr Baumgart,

danke für die schnelle Antwort.

Wenn ich im Browser nach nach den aktuellen Kursen suche ist die URL:

https://markets.ft.com/data/funds/tearsheet/summary?s=DE0009750117:EUR

Wenn ich in kmymoney jetzt diese Adresse einfüge:

https://markets.ft.com/data/funds/tearsheet/summary?s=%1

erhalte ich folgende Ausgabe:

Adresse 
https://markets.ft.com/data/funds/tearsheet/query?s=de0009750117:EUR 
wird geholt ...

Symbol gefunden:

Preis für de0009750117:EUR kann nicht aktualisiert werden (kein Preis 
oder kein Datum)

Das gleiche Ergeniss erhalte ich auch wen ich eine andere Online Quelle 
auswähle.

Am 27.12.21 um 16:37 schrieb Thomas Baumgart:
> Looks to me if FT has changed their interface. Do you get the correct
> information if you open the provided link in a web-browser? Which URL do you
> need to specify to get the information from the web-site?
Comment 3 Thomas Baumgart 2021-12-28 14:43:41 UTC
Ich antworte auch mal auf Deutsch (obwohl hier die ganze Welt mitliest). Bitte bei Antworten mit E-Mail keine HTML Mails schicken. Das gibt hier immer so hässliche Anhänge die kein Mensch braucht. Danke im Voraus. Nun zur Lösung des Problems: es ist wie vermutet, der Seiteninhalt hat sich geändert und die RegEx (regular expressions) müssen daher angepasst werden. Das kann jeder selber machen und ein wenig herumprobieren. Viele Wege führen nach Rom. Kann sein, dass der Text "as of" beim Datum anders angezeigt wird. Dann entsprechend anpassen.

It's as expected: the regex values need to be adjusted.

Updated regex values for Financial Times 

URL: https://markets.ft.com/data/funds/tearsheet/summary?s=%1
Symbol: summary\?s=([^\"]+)\"
Price: <span class=\"mod-ui-data-list__value\">([\d.]+)<\/span>
Date: as of (\w+ \d+ \d+)\.
Date Format: %m %d %y

Skip HTML stripping must be marked.

Here is the proof:
URL found: https://markets.ft.com/data/funds/tearsheet/summary?s=DE0009750117:EUR...
Symbol found: 'DE0009750117:EUR'
Price found: '252.68' (252,68)
Date found: 'Dec 23 2021'
Date format found: 'Dec 23 2021' -> 'Do. Dez. 23 2021'
DE0009750117:EUR DE0009750117:EUR Do. Dez. 23 2021 252.68
Comment 4 wolle 2021-12-28 14:56:57 UTC
Created attachment 144911 [details]
attachment-2301-0.html

Ok than in english :-)

Thanks for your help.

I'll try it again. It may also work with one of the other online 
sources.Then just have to find the right stock market symbols.

Am 28.12.21 um 15:43 schrieb Thomas Baumgart:
> https://bugs.kde.org/show_bug.cgi?id=447569
>
> Thomas Baumgart<tbaumgart@kde.org>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|NEEDSINFO                   |RESOLVED
>           Resolution|WAITINGFORINFO              |NOT A BUG
>
> --- Comment #3 from Thomas Baumgart<tbaumgart@kde.org>  ---
> Ich antworte auch mal auf Deutsch (obwohl hier die ganze Welt mitliest). Bitte
> bei Antworten mit E-Mail keine HTML Mails schicken. Das gibt hier immer so
> hässliche Anhänge die kein Mensch braucht. Danke im Voraus. Nun zur Lösung des
> Problems: es ist wie vermutet, der Seiteninhalt hat sich geändert und die RegEx
> (regular expressions) müssen daher angepasst werden. Das kann jeder selber
> machen und ein wenig herumprobieren. Viele Wege führen nach Rom. Kann sein,
> dass der Text "as of" beim Datum anders angezeigt wird. Dann entsprechend
> anpassen.
>
> It's as expected: the regex values need to be adjusted.
>
> Updated regex values for Financial Times
>
> URL:https://markets.ft.com/data/funds/tearsheet/summary?s=%1
> Symbol: summary\?s=([^\"]+)\"
> Price: <span class=\"mod-ui-data-list__value\">([\d.]+)<\/span>
> Date: as of (\w+ \d+ \d+)\.
> Date Format: %m %d %y
>
> Skip HTML stripping must be marked.
>
> Here is the proof:
> URL found:
> https://markets.ft.com/data/funds/tearsheet/summary?s=DE0009750117:EUR...
> Symbol found: 'DE0009750117:EUR'
> Price found: '252.68' (252,68)
> Date found: 'Dec 23 2021'
> Date format found: 'Dec 23 2021' -> 'Do. Dez. 23 2021'
> DE0009750117:EUR DE0009750117:EUR Do. Dez. 23 2021 252.68
>