atreadw1492 / yahoo_fin

Scrape stock price history from new (Spring 2017) Yahoo Finance layout
MIT License
286 stars 125 forks source link

get_quote_table does not work for CL=F #27

Closed duivesteyn closed 3 years ago

duivesteyn commented 3 years ago

Has error on ticker "CL=F" File "/usr/local/lib/python3.9/site-packages/yahoo_fin/stock_info.py", line 197, in get_quote_table price_etc = [elt for elt in tables if elt.iloc[0][0] == "Previous Close"][0] IndexError: list index out of range

https://finance.yahoo.com/quote/CL=F?p=CL=F

atreadw1492 commented 3 years ago

Thanks for pointing this out. The next release corrects for this issue (due out in the next couple weeks).