/usr/share/skrooge/skrooge-boursorama.py IRE 2025-12-02 1d date,price Traceback (most recent call last): File "/usr/share/skrooge/skrooge-boursorama.py", line 134, in <module> dump_to_csv(symbol, results, sys.stdout) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/skrooge/skrooge-boursorama.py", line 123, in dump_to_csv for value in ticker_values: ^^^^^^^^^^^^^ File "/usr/share/skrooge/skrooge-boursorama.py", line 107, in download_history earliest_date = yield from parse_one_page(soup, start_date) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/skrooge/skrooge-boursorama.py", line 89, in parse_one_page raise ValueError("Page does not have the expected format") ValueError: Page does not have the expected format Thank's
https://invent.kde.org/office/skrooge/-/commit/293a48c21d01bc590d1f44fa198a0cfaca2e5d1a
I've looked at this and there are two problems as the website completely changed the way this works. The first one is easily solved, the list of quotes should be retrieved from a différent URL. The second one is more complicated, because that different url for the search result returns a redirect to a different URL with a token parameter. The problem here is that i do not understand how this works exactly: i've got 401 errors while querying that from the command Line, but also sometimes from the website itself. It may just be due to a simple rate limit somewhere, i'll take a look with a fresh session at some point.
(In reply to Ronan Dunklau from comment #2) > I've looked at this and there are two problems as the website completely > changed the way this works. > The first one is easily solved, the list of quotes should be retrieved from > a différent URL. > The second one is more complicated, because that different url for the > search result returns a redirect to a different URL with a token parameter. > The problem here is that i do not understand how this works exactly: i've > got 401 errors while querying that from the command Line, but also sometimes > from the website itself. > It may just be due to a simple rate limit somewhere, i'll take a look with a > fresh session at some point. Hi Ronan, I did a fix. Could you check it ? PS: in fact the AI Claude helps me a lot to do it.
Git commit 293a48c21d01bc590d1f44fa198a0cfaca2e5d1a by Stéphane MANKOWSKI. Committed on 10/01/2026 at 17:24. Pushed by smankowski into branch 'master'. skrooge-boursorama.py don't work M +1 -0 CHANGELOG M +120 -73 skgbankmodeler/skrooge-boursorama.py M +74 -74 skgbankmodeler/sources/org.kde.skrooge-source-boursorama.json https://invent.kde.org/office/skrooge/-/commit/293a48c21d01bc590d1f44fa198a0cfaca2e5d1a
Created attachment 188417 [details] Fix for skrooge-boursorama Hum, the new solution switches to playwright which is not really needed for what we want to do, and this is a significant dependency as it relies on having a full headless browser around. I guess getting the results from that page works, but we lose the arguments we used to have regarding the frequency of the dates we want. I found the remaining bit that was left: a missing value in a cookie. Please find a patch keeping roughly the same workflow as before, even simplifying a bit since CSV download is easily accessible now. The patch is meant to be applied on top of b8878c0fa9cdd76db022836e48e83d0287695b9e (last commit before the playwright version).
Git commit cd5306ed1bcc52529483219465622dd8635fb052 by Stéphane MANKOWSKI. Committed on 11/01/2026 at 20:04. Pushed by smankowski into branch 'master'. skrooge-boursorama.py don't work M +68 -128 skgbankmodeler/skrooge-boursorama.py M +58 -58 skgbankmodeler/sources/org.kde.skrooge-source-boursorama.json https://invent.kde.org/office/skrooge/-/commit/cd5306ed1bcc52529483219465622dd8635fb052
(In reply to Stephane MANKOWSKI from comment #6) > Git commit cd5306ed1bcc52529483219465622dd8635fb052 by Stéphane MANKOWSKI. > Committed on 11/01/2026 at 20:04. > Pushed by smankowski into branch 'master'. > > skrooge-boursorama.py don't work > > M +68 -128 skgbankmodeler/skrooge-boursorama.py > M +58 -58 skgbankmodeler/sources/org.kde.skrooge-source-boursorama.json > > https://invent.kde.org/office/skrooge/-/commit/ > cd5306ed1bcc52529483219465622dd8635fb052 Hello, thank you for the fix, I confirm it is working. For me line 1-2 are useless and line 20 is a duplicate of line 10. When I delete them, the script works well.
Git commit 767454978e8c0f304d8b4a12b534adc846c999b5 by Stéphane MANKOWSKI. Committed on 13/01/2026 at 19:05. Pushed by smankowski into branch 'master'. skrooge-boursorama.py don't work M +0 -3 skgbankmodeler/skrooge-boursorama.py https://invent.kde.org/office/skrooge/-/commit/767454978e8c0f304d8b4a12b534adc846c999b5