JECSand / yahoofinancials

A powerful financial data module used for pulling data from Yahoo Finance. This module can pull fundamental and technical data for stocks, indexes, currencies, cryptos, ETFs, Mutual Funds, U.S. Treasuries, and commodity futures.
https://pypi.python.org/pypi/yahoofinancials
MIT License
896 stars 214 forks source link

ValueError: Invalid padding bytes. #133

Closed pabgone closed 1 year ago

pabgone commented 1 year ago

Hello,

An error is recently showing up when extracting any data with the library. I guess it has something to do with a change in Yahoo webpage. Is there any way to make it work fast? Like using a previous version or changing a couple of lines?

File "C:\Users\PABLO\Desktop\StockAnalyzerApp\venv\lib\site-packages\cryptography\hazmat\primitives\padding.py", line 101, in _byte_unpadding_check raise ValueError("Invalid padding bytes.") ValueError: Invalid padding bytes.

JECSand commented 1 year ago

@pabgone I planned on investigating/fixing it this weekend. There’s likely no easy quick fix to this. Yahoo is making it harder to extract financial data.

JECSand commented 1 year ago

duplicate of #132

pabgone commented 1 year ago

Thank you! I really appreciate it

On Sat, Feb 11, 2023, 02:07 Connor Sanders @.***> wrote:

Closed #133 https://github.com/JECSand/yahoofinancials/issues/133 as completed.

— Reply to this email directly, view it on GitHub https://github.com/JECSand/yahoofinancials/issues/133#event-8495022974, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXI3HERWCBMTHBX7GDNK3EDWW3Q6RANCNFSM6AAAAAAUX7KV74 . You are receiving this because you were mentioned.Message ID: @.***>