akfamily / akshare

AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
https://akshare.akfamily.xyz
MIT License
8.96k stars 1.84k forks source link

AKShare 接口问题报告 #5085

Closed lightcax closed 1 month ago

lightcax commented 1 month ago

详细问题描述

版本:akshare-1.14.44

import akshare as ak

crypto_hist_df = ak.crypto_hist(symbol="BTC", period="每日", start_date="20151020", end_date="20201023")
print(crypto_hist_df)

crypto_hist错误无法获取

Traceback (most recent call last):
  File "F:\ak.py", line 21, in <module>
    crypto_hist_df = ak.crypto_hist(symbol="BTC", period="每日", start_date="20151020", end_date="20201023")
  File "D:\python\lib\site-packages\akshare\crypto\crypto_hist_investing.py", line 177, in crypto_hist
    temp_df = pd.read_html(r.text)[0]
  File "D:\python\lib\site-packages\pandas\io\html.py", line 1245, in read_html
    return _parse(
  File "D:\python\lib\site-packages\pandas\io\html.py", line 1008, in _parse
    raise retained
  File "D:\python\lib\site-packages\pandas\io\html.py", line 988, in _parse
    tables = p.parse_tables()
  File "D:\python\lib\site-packages\pandas\io\html.py", line 248, in parse_tables
    tables = self._parse_tables(self._build_doc(), self.match, self.attrs)
  File "D:\python\lib\site-packages\pandas\io\html.py", line 603, in _parse_tables
    raise ValueError("No tables found")
ValueError: No tables found
albertandking commented 1 month ago

crypto_hist 参见文档说明