Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AKShare 接口问题报告 | ak.futures_rule #5418

Closed
YPersion opened this issue Dec 14, 2024 · 2 comments
Closed

AKShare 接口问题报告 | ak.futures_rule #5418

YPersion opened this issue Dec 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@YPersion
Copy link

python版本:3.12
akshare版本:1.15.45

示例代码:
futures_rule_df = ak.futures_rule(date=weekday_str)
报错信息:
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\akshare\futures\futures_rule.py", line 28, in futures_rule
big_df = pd.read_html(StringIO(r.text), header=1)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 1240, in read_html
return _parse(
^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 1003, in _parse
raise retained
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 983, in _parse
tables = p.parse_tables()
^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 249, in parse_tables
tables = self._parse_tables(self._build_doc(), self.match, self.attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda\envs\env_hight_futuresproject\Lib\site-packages\pandas\io\html.py", line 598, in _parse_tables
raise ValueError("No tables found")
ValueError: No tables found
python-BaseException

@YPersion YPersion added the bug Something isn't working label Dec 14, 2024
@YPersion
Copy link
Author

weekday_str 时间为20241213

@albertandking
Copy link
Collaborator

futures_rule

数据源暂未更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants