bean-price yahoo gives error

335 views
Skip to first unread message

Desi Mas

unread,
Jul 10, 2021, 9:06:54 PM7/10/21
to Beancount
I've been using the yahoo price source successfully up until two days ago.  Beancount hasn't been updated, so it must be something with the API.  I couldn't find anything on the yahoo website, so wanted to check here if others are getting an error too.

The command and error are:

bean-price -e "USD:yahoo/SCHA"

ERROR   : Error fetching SCHA: Expecting value: line 1 column 1 (char 0)
ERROR   : Could not fetch for job: DatedPrice(base='SCHA', quote='USD', date=None, sources=[PriceSource(module=<module 'beancount.prices.sources.yahoo' from '/usr/lib/python3.9/site-packages/beancount/prices/sources/yahoo.py'>, symbol='SCHA', invert=False)])

Dustin Farris

unread,
Jul 10, 2021, 11:56:56 PM7/10/21
to Beancount
This is an issue with yahoo recently denying requests from python.  See https://github.com/beancount/beancount/issues/667.

Desi Mas

unread,
Jul 11, 2021, 8:44:48 AM7/11/21
to Beancount
Reply all
Reply to author
Forward
0 new messages