| Summary: | Downloading values from yahoo fails HTTP Error 401: Unauthorized | ||
|---|---|---|---|
| Product: | [Applications] skrooge | Reporter: | Christoph Vogtländer <kde> |
| Component: | general | Assignee: | Stephane MANKOWSKI <stephane> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | archideb |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | 25.1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/office/skrooge/-/commit/1d8da82a4ba6c4d59ee24785e261d232cbf1edbc | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
Hi, Yahoo doesn't allow anymore to download. I removed this source and added a new one from boursorama. See https://invent.kde.org/office/skrooge/-/commit/5758d908b5918401a0e75b17b1d23253fb12272a So, this ticket is closed. *** Bug 495425 has been marked as a duplicate of this bug. *** Hello, i have problem with plugin boursorama: /usr/share/skrooge/skrooge-boursorama.py IRE.MI Traceback (most recent call last): File "/usr/share/skrooge/skrooge-boursorama.py", line 138, in <module> from_date = date.fromisoformat(sys.argv[2]) ~~~~~~~~^^^ With a good code and date and duration, this is working: /usr/share/skrooge/skrooge-boursorama.py AIRBUS 2024-10-22 1d Hello, this is error:
/usr/share/skrooge/skrooge-boursorama.py AIRBUS 2024-10-22 1d
date,price
Traceback (most recent call last):
File "/usr/share/skrooge/skrooge-boursorama.py", line 143, in <module>
dump_to_csv(symbol, results, sys.stdout)
File "/usr/share/skrooge/skrooge-boursorama.py", line 132, in dump_to_csv
for value in ticker_values:
^^^^^^^^^^^^^
File "/usr/share/skrooge/skrooge-boursorama.py", line 116, in download_history
earliest_date = yield from parse_one_page(soup, start_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/skrooge/skrooge-boursorama.py", line 100, in parse_one_page
with override_locale(locale.LC_NUMERIC, "fr_FR.UTF-8"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/share/skrooge/skrooge-boursorama.py", line 71, in override_locale
locale.setlocale(category, locale_string)
File "/usr/lib/python3.12/locale.py", line 615, in setlocale
return _setlocale(category, locale)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting
Git commit 1d8da82a4ba6c4d59ee24785e261d232cbf1edbc by Stephane MANKOWSKI. Committed on 29/10/2024 at 22:31. Pushed by smankowski into branch 'master'. Downloading values from yahoo fails HTTP Error 401: Unauthorized M +1 -0 CHANGELOG M +7 -16 skgbankmodeler/skrooge-boursorama.py https://invent.kde.org/office/skrooge/-/commit/1d8da82a4ba6c4d59ee24785e261d232cbf1edbc (In reply to Stephane MANKOWSKI from comment #6) > Git commit 1d8da82a4ba6c4d59ee24785e261d232cbf1edbc by Stephane MANKOWSKI. > Committed on 29/10/2024 at 22:31. > Pushed by smankowski into branch 'master'. > > Downloading values from yahoo fails HTTP Error 401: Unauthorized > > M +1 -0 CHANGELOG > M +7 -16 skgbankmodeler/skrooge-boursorama.py > > https://invent.kde.org/office/skrooge/-/commit/ > 1d8da82a4ba6c4d59ee24785e261d232cbf1edbc Good job! The plugin now works correctly both on the command line and within Skrooge. Thank you for your kind availability. |
SUMMARY Running skrooge-yahoodl.py results in HTTP Error 401: Unauthorized STEPS TO REPRODUCE 1. execute /usr/share/skrooge/skrooge-yahoodl.py EURUSD=X 2024-09-17 2024-10-03 1d OBSERVED RESULT Traceback (most recent call last): File "/usr/share/skrooge/skrooge-yahoodl.py", line 110, in <module> for l in load_yahoo_quote(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4]): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/skrooge/skrooge-yahoodl.py", line 105, in load_yahoo_quote f = urllib.request.urlopen(url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 521, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 630, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 559, in error return self._call_chain(*args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/request.py", line 639, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 401: Unauthorized EXPECTED RESULT Quotes should be fetched SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.3 Kernel Version: 6.10.10-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i5-4460 CPU @ 3.20GHz Memory: 15.3 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 4600 ADDITIONAL INFORMATION