This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Boursorama stock quotes

Tags: None
(comma "," separated)
gpac
Registered Member
Posts
1
Karma
0

Boursorama stock quotes

Sun Apr 08, 2018 7:05 am
Hello,

Boursorama has changed their web site and online quote doesn't work any more.

I'm trying to update my settings, but no success so far...

URL : https://www.boursorama.com/cours/%1
Symbol : data-faceplate[^\}]*?data-ist="([\S]*)"
Quote : data-faceplate[^\}]*?;last":((?:\d{0,3}\s+)*\d{0,3}(?:,|\.)\d*)
Date : data-faceplate[^\}]*?;tradeDate":"(\d+\D+\d+\D+\d+)
Date format : %y-%m-%d
and obviously the skip stripping box is checked.

But unfortunately it always fail... ...while when I parse the webpage with an online regex tester it seems to find correct values.

=> if anyone could tell me how to fix this, that would be great.

Best regards
jmzorg
Registered Member
Posts
35
Karma
0

Re: Boursorama stock quotes

Mon Apr 23, 2018 8:21 am
Hello,
Hereunder the kmymoneyrc Boursorama section i use in french successfully :
[Online-Quote-Source-Boursorama]
DateFormatRegex=%d/%m/%y
DateRegex=<div class="c-faceplate__real-time">OPCVM dernier cours connu au (\\d+\\/\\d+\\/\\d+)
PriceRegex=<span class="c-instrument c-instrument--last" data-ist-last>(\\d{1} \\d{3}\\.\\d{3}|\\d+\\.\\d{3})
SkipStripping=true
SymbolRegex=
URL=http://www.boursorama.com/bourse/opcvm/opcvm.phtml?symbole=%1


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]