<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>494023</bug_id>
          
          <creation_ts>2024-10-03 08:43:12 +0000</creation_ts>
          <short_desc>Downloading values from yahoo fails HTTP Error 401: Unauthorized</short_desc>
          <delta_ts>2024-10-30 06:23:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>skrooge</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>25.1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christoph Vogtländer">kde</reporter>
          <assigned_to name="Stephane MANKOWSKI">stephane</assigned_to>
          <cc>archideb</cc>
          
          <cf_commitlink>https://invent.kde.org/office/skrooge/-/commit/1d8da82a4ba6c4d59ee24785e261d232cbf1edbc</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2362257</commentid>
    <comment_count>0</comment_count>
    <who name="Christoph Vogtländer">kde</who>
    <bug_when>2024-10-03 08:43:12 +0000</bug_when>
    <thetext>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 &quot;/usr/share/skrooge/skrooge-yahoodl.py&quot;, line 110, in &lt;module&gt;
    for l in load_yahoo_quote(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4]):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/share/skrooge/skrooge-yahoodl.py&quot;, line 105, in load_yahoo_quote
    f = urllib.request.urlopen(url)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/urllib/request.py&quot;, line 215, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/urllib/request.py&quot;, line 521, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/urllib/request.py&quot;, line 630, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/urllib/request.py&quot;, line 559, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/urllib/request.py&quot;, line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/urllib/request.py&quot;, 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362417</commentid>
    <comment_count>1</comment_count>
    <who name="Stephane MANKOWSKI">stephane</who>
    <bug_when>2024-10-03 18:04:33 +0000</bug_when>
    <thetext>Hi,

Yahoo doesn&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2369573</commentid>
    <comment_count>2</comment_count>
    <who name="Stephane MANKOWSKI">stephane</who>
    <bug_when>2024-10-27 12:15:42 +0000</bug_when>
    <thetext>*** Bug 495425 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2369800</commentid>
    <comment_count>3</comment_count>
    <who name="">archideb</who>
    <bug_when>2024-10-28 07:30:07 +0000</bug_when>
    <thetext>Hello, i have problem with plugin boursorama:
/usr/share/skrooge/skrooge-boursorama.py IRE.MI

Traceback (most recent call last):

File &quot;/usr/share/skrooge/skrooge-boursorama.py&quot;, line 138, in &lt;module&gt;

from_date = date.fromisoformat(sys.argv[2])

~~~~~~~~^^^</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2370042</commentid>
    <comment_count>4</comment_count>
    <who name="Stephane MANKOWSKI">stephane</who>
    <bug_when>2024-10-28 22:22:31 +0000</bug_when>
    <thetext>With a good code and date and duration, this is working:
/usr/share/skrooge/skrooge-boursorama.py AIRBUS 2024-10-22 1d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2370098</commentid>
    <comment_count>5</comment_count>
    <who name="">archideb</who>
    <bug_when>2024-10-29 05:57:02 +0000</bug_when>
    <thetext>Hello, this is error:

/usr/share/skrooge/skrooge-boursorama.py AIRBUS 2024-10-22 1d
date,price
Traceback (most recent call last):
  File &quot;/usr/share/skrooge/skrooge-boursorama.py&quot;, line 143, in &lt;module&gt;
    dump_to_csv(symbol, results, sys.stdout)
  File &quot;/usr/share/skrooge/skrooge-boursorama.py&quot;, line 132, in dump_to_csv
    for value in ticker_values:
                 ^^^^^^^^^^^^^
  File &quot;/usr/share/skrooge/skrooge-boursorama.py&quot;, line 116, in download_history
    earliest_date = yield from parse_one_page(soup, start_date)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/share/skrooge/skrooge-boursorama.py&quot;, line 100, in parse_one_page
    with override_locale(locale.LC_NUMERIC, &quot;fr_FR.UTF-8&quot;):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/contextlib.py&quot;, line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File &quot;/usr/share/skrooge/skrooge-boursorama.py&quot;, line 71, in override_locale
    locale.setlocale(category, locale_string)
  File &quot;/usr/lib/python3.12/locale.py&quot;, line 615, in setlocale
    return _setlocale(category, locale)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2370331</commentid>
    <comment_count>6</comment_count>
    <who name="Stephane MANKOWSKI">stephane</who>
    <bug_when>2024-10-29 22:31:28 +0000</bug_when>
    <thetext>Git commit 1d8da82a4ba6c4d59ee24785e261d232cbf1edbc by Stephane MANKOWSKI.
Committed on 29/10/2024 at 22:31.
Pushed by smankowski into branch &apos;master&apos;.

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2370394</commentid>
    <comment_count>7</comment_count>
    <who name="">archideb</who>
    <bug_when>2024-10-30 06:23:34 +0000</bug_when>
    <thetext>(In reply to Stephane MANKOWSKI from comment #6)
&gt; Git commit 1d8da82a4ba6c4d59ee24785e261d232cbf1edbc by Stephane MANKOWSKI.
&gt; Committed on 29/10/2024 at 22:31.
&gt; Pushed by smankowski into branch &apos;master&apos;.
&gt; 
&gt; Downloading values from yahoo fails HTTP Error 401: Unauthorized
&gt; 
&gt; M  +1    -0    CHANGELOG
&gt; M  +7    -16   skgbankmodeler/skrooge-boursorama.py
&gt; 
&gt; https://invent.kde.org/office/skrooge/-/commit/
&gt; 1d8da82a4ba6c4d59ee24785e261d232cbf1edbc

Good job! The plugin now works correctly both on the command line and within Skrooge. Thank you for your kind availability.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>