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 接口问题报告 问财热股数据无法下载 #1649

Closed
quanplex opened this issue Sep 8, 2021 · 6 comments
Closed

AKShare 接口问题报告 问财热股数据无法下载 #1649

quanplex opened this issue Sep 8, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@quanplex
Copy link

quanplex commented Sep 8, 2021

遇到任何问题,请先确认您的 AKShare 版本是最新的

pip install akshare --upgrade  # Python 版本需要大于 3.7

描述遇到的问题

  1. 操作系统版本 Mac OS 10.13
  2. Python 版本 3.8.5
  3. AKShare 版本
  4. 接口的名称和代码 stock_wc_hot_rank(date="20210908")
  5. 接口报错的截图或代码

Error in py_call_impl(callable, dots$args, dots$keywords) :
IndexError: list index out of range

Detailed traceback:
File "/opt/anaconda3/envs/queen/lib/python3.8/site-packages/akshare/stock_feature/stock_wencai.py", line 87, in stock_wc_hot_rank
rank_date_str = temp_df.columns[2].split("[")[1].strip("]")

  1. 期望获得的正确结果
    从2021年9月8日开始无法下载当日数据,但是历史数据可以正常下载。
@quanplex quanplex added the bug Something isn't working label Sep 8, 2021
@albertandking
Copy link
Collaborator

遇到任何问题,请先确认您的 AKShare 版本是最新的

pip install akshare --upgrade  # Python 版本需要大于 3.7

描述遇到的问题

  1. 操作系统版本 Mac OS 10.13
  2. Python 版本 3.8.5
  3. AKShare 版本
  4. 接口的名称和代码 stock_wc_hot_rank(date="20210908")
  5. 接口报错的截图或代码

Error in py_call_impl(callable, dots$args, dots$keywords) :
IndexError: list index out of range

Detailed traceback:
File "/opt/anaconda3/envs/queen/lib/python3.8/site-packages/akshare/stock_feature/stock_wencai.py", line 87, in stock_wc_hot_rank
rank_date_str = temp_df.columns[2].split("[")[1].strip("]")

  1. 期望获得的正确结果
    从2021年9月8日开始无法下载当日数据,但是历史数据可以正常下载。

感谢反馈问题,请升级到 AKShare 1.0.99 版本,已修复

@quanplex
Copy link
Author

quanplex commented Sep 9, 2021 via email

@quanplex
Copy link
Author

quanplex commented Sep 9, 2021 via email

@albertandking
Copy link
Collaborator

py_to_r

好的,您说的 ak$stock_wc_hot_rank(date='20210907’) 可以返回 R 的数据还成立嘛?

@albertandking albertandking reopened this Sep 9, 2021
@quanplex
Copy link
Author

quanplex commented Sep 9, 2021 via email

@albertandking
Copy link
Collaborator

python 3.8.5 和 akshare 1.0.99 下 返回的依然是python数据。 之前测试应该是用了其他的python环境所导致。

在 2021年9月9日,下午3:10,Albert King @.***> 写道: py_to_r 好的,您说的 ak$stock_wc_hot_rank(date='20210907’) 可以返回 R 的数据还成立嘛? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#1649 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6VJL3EKSTFB3NRRDYPOVDUBBMXHANCNFSM5DVHFU2A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

好的

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