The patch is basically changing, in yahoo.py:

self.session = requests.Session()

to:

from curl_cffi import requests as curl_requests
self.session = curl_requests.Session(impersonate="chrome")

On Fri, May 9, 2025 at 9:37 AM Adrian Utrilla <[email protected]>
wrote:

> I've fixed it (uglily) by using https://github.com/lexiforest/curl_cffi
> instead of requests.
>
> On Fri, May 9, 2025 at 9:32 AM 'Alen Šiljak' via Beancount <
> [email protected]> wrote:
>
>> Yes, I recently started getting
>> ```
>> Received a non-success status: 429 Too Many Requests
>> ```
>> from Yahoo with my pricedb tool (
>> https://github.com/alensiljak/pricedb-rust). Another round of
>> tightening, I assume. Or, perhaps, an API change?
>>
>> On Friday, 9 May 2025 at 12:34:34 am UTC+2 fin wrote:
>>
>>> Chary Ev2geny wrote:
>>> >
>>> > I also getting similar errors:
>>> ...
>>>
>>> Thanks for verifying it isn't just me. :)
>>>
>>>
>>> fin
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Beancount" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion visit
>> https://groups.google.com/d/msgid/beancount/20bb44dc-01d4-4e43-826c-7ce082a1823en%40googlegroups.com
>> <https://groups.google.com/d/msgid/beancount/20bb44dc-01d4-4e43-826c-7ce082a1823en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/beancount/CADMOc8WNLOwusCOpJ%2BFML%2B2FjOzDKgyLxY116161wG%2BuMOmRVw%40mail.gmail.com.

Reply via email to