Registered Member
|
Hi,
I am trying to configure my own online quotes, to use boursorama. Here is what I have: url: https://www.boursorama.com/bourse/opcvm/cours/%1 Price: Cours\D*([\d, ]+\.\d+) Date: dernier cours connu au\ (.*)\. Date format: %d/%m/%y This seems to work most of time, except when the name of stock to retrieve contains digits, e.g. https://www.boursorama.com/bourse/opcvm ... 0000448870 Has anybody got any idea how to better set up this? Thanks a lot Steven |
KDE Developer
|
I downloaded the data from the link you provided and found the following block beginning on line 1581 and marked the interesting bits in red:
With this information you could try the following settings (which I have not verified): url: https://www.boursorama.com/bourse/opcvm/cours/%1 Price: <header class="l-quotepage__header">.+data-ist-last>([\d, ]+\.\d+)</span> Date: dernier cours connu au\ (.*)</div> Date format: %d/%m/%y Skip HTML stripping: marked The price entry is a bit tricky, as the pattern data-ist-last>([\d, ]+\.\d+)</span> exists multiple times in the data but for other values and you need to pick the right one. Looking forward to a report on your results.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
I am using Boursorama with the following configurations :
[Online-Quote-Source-Boursorama] CSVURL= DateFormatRegex=%d %m %y DateRegex=(\\d{2}\\/\\d{2}\\/\\d{4}) IDBy=0 IDRegex=%1 PriceRegex=faceplate__values\\D*(\\d{1} \\d{3}\\.\\d{2}|\\d+\\.\\d{2}) SkipStripping=true URL=https://www.boursorama.com/bourse/opcvm/cours/%1 [Online-Quote-Source-Boursorama-actions] CSVURL= DateFormatRegex=%d %m %y DateRegex=tradedate\\D*(\\d{1,2}\\.\\d{2}\\.\\d{2}) IDBy=0 IDRegex=%1 PriceRegex=faceplate__values\\D*(\\d{1} \\d+\\.\\d{2}|\\d+\\.\\d{2}) SkipStripping=true URL=https://www.boursorama.com/cours/%1 By the way, the embedded KMyMoney Currency does not work anymore, i have an error each time i update stocks, can you have a look and see where is the problem ? i cannot do it by myself because i do not know what to look at in the currency page code. [Online-Quote-Source-KMyMoney Currency] CSVURL= DateFormatRegex=%d/%m/%y DateRegex=updated\\s\\d+:\\d+:\\d+\\(\\w+\\)\\s+(\\d{1,2}/\\d{2}/\\d{4}) IDBy=0 IDRegex=https://fx-rate.net/([^/]+/[^/]+) PriceRegex=1[ a-zA-Z]+=</span><br\\s*/?>\\s*([,\\d+\\.]+) SkipStripping=true URL=https://fx-rate.net/%1/%2 |
Registered Member
|
I just upload KMyMoney and the [Online-Quote-Source-KMyMoney Currency] works again,
|
Registered Member
|
Hi jmzorg and ipwizard,
Thanks for your replies. Based on those, I have used: URL: https://www.boursorama.com/bourse/opcvm/cours/%1 Identified by: Identification number Skip HTML stripping: ticked Date format: %d.%m.%y Then, I had to make a difference between trackers and OPCVM (hence created two templates): Trackers: Price: class="c-faceplate__price"><span class="c-instrument c-instrument--last" data-ist-last>([\d, ]+\.\d+)</span> Date: Valeur liquidative au (.*) / OPCVM: Price: faceplate__price--inline"><span class="c-instrument c-instrument--last" data-ist-last>([\d, ]+\.\d+)</span> Date: dernier cours connu au\ (.*)</div> Steven |
Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar