Bug 518796 - skrooge-boursorama.py stop to work for some values
Summary: skrooge-boursorama.py stop to work for some values
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (other bugs)
Version First Reported In: 26.1.20
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: 25.1.0
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-10 23:53 UTC by Burzig
Modified: 2026-04-11 15:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Burzig 2026-04-10 23:53:31 UTC
Hello,

Since some time now, I have an issue to download stock market data with boursobank. I think this is a continuation of the ticket https://bugs.kde.org/show_bug.cgi?id=513016

I tested with value IRE (example from the previous ticket), and for this one it is working.
/usr/share/skrooge/skrooge-boursorama.py IRE 2025-12-02 1d

But for values PX1 (CAC 40) or ACA (Crédit Agricole SA) that interest me, I have this error message:
Traceback (most recent call last): 
 File "/usr/share/skrooge/skrooge-boursorama.py", line 115, in <module> 
   actual_symbol = ticker_to_url(symbol) 
 File "/usr/share/skrooge/skrooge-boursorama.py", line 57, in ticker_to_url 
   raise ValueError( 
       "Ticker search did not return a valid redirect: check the symbol" 
   ) 
ValueError: Ticker search did not return a valid redirect: check the symbol


After modifying the script to have the values of the status code and the header, there is the result:
/usr/share/skrooge/skrooge-boursorama.py PX1 2025-12-02 1d 
Status code: 200 
Headers: {'content-type': 'text/html; charset=UTF-8', 'charset': 'utf-8', 'date': 'Fri, 10 Apr 2026 22:50:08 GMT', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-
age=16070400; includeSubDomains; preload', 'x-ua-device': 'desktop', 'x-frame-options': 'DENY', 'content-security-policy': "frame-ancestors 'self' *.boursorama.com *.boursobank.com", 'x-
content-security-policy': "frame-ancestors 'self' *.boursorama.com *.boursobank.com", 'content-encoding': 'gzip', 'grace': 'none', 'cache-control': 'no-cache, no-store, must-revalidate',
'expires': '0', 'accept-ranges': 'bytes', 'transfer-encoding': 'chunked'}

I have no idea how to fix that.

Best Regards,
Yann
Comment 1 Burzig 2026-04-11 00:27:40 UTC
The issue is maybe because for these references, there is many results with their code.
If I use FR0003500008 for PX1 and FR0000045072 for ACA, it is working.
Comment 2 Stephane MANKOWSKI 2026-04-11 15:51:19 UTC
Git commit 3ab223d011f82f3eff62b1c90b0064af661773cb by Stéphane MANKOWSKI.
Committed on 11/04/2026 at 15:51.
Pushed by smankowski into branch 'master'.

skrooge-boursorama.py stop to work for some values

M  +1    -1    CHANGELOG
M  +0    -6    README.md
M  +84   -13   skgbankmodeler/skrooge-boursorama.py
M  +3    -0    tests/CMakeLists.txt
A  +26   -0    tests/scripts/skgtestscripts.sh

https://invent.kde.org/office/skrooge/-/commit/3ab223d011f82f3eff62b1c90b0064af661773cb