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.stock_news_em() #4885

Closed
Dbgsaoge opened this issue May 17, 2024 · 5 comments
Closed

AKShare 接口问题报告ak.stock_news_em() #4885

Dbgsaoge opened this issue May 17, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Dbgsaoge
Copy link

详细描述遇到的问题

  1. 操作系统版本: windows11
  2. Python 版本,3.10.9
  3. AKShare 版本,1.13.76
  4. 接口的名称:
    keyword = "300059"
    stock_news_em_df = ak.stock_news_em(symbol=keyword)
    Y7W {9365)YJTNGKT79N906

接口不能正常调用

@Dbgsaoge Dbgsaoge added the bug Something isn't working label May 17, 2024
@JiangJamm
Copy link
Contributor

发现不管传入什么,返回的都是达利食品。尝试添加headers和cookies无法解决
image

@Dbgsaoge
Copy link
Author

发现不管传入什么,返回的都是达利食品。尝试添加headers和cookies无法解决 image

你这个是在windows下跑的吗,它默认的symbol就是300059,我现在直接就报错keyerror然后就结束了

@albertandking
Copy link
Collaborator

详细描述遇到的问题

  1. 操作系统版本: windows11
  2. Python 版本,3.10.9
  3. AKShare 版本,1.13.76
  4. 接口的名称:
    keyword = "300059"
    stock_news_em_df = ak.stock_news_em(symbol=keyword)
    Y7W {9365)YJTNGKT79N906

接口不能正常调用

接口测试正常

@onceCWJ
Copy link

onceCWJ commented May 22, 2024

@Dbgsaoge 哥们确实可以,我在windows上不行,但是在linux上就可以了感觉不是接口的问题?

@JiangJamm
Copy link
Contributor

进行以下不完全测试及尝试:

  1. 尝试使用postman用相同params能够正确获取,但是使用Python无法正确获取(mac)
  2. 更换不同网络环境下的Windows电脑,能够正确获取
  3. 将https更改为http可以正确获取
  4. 使用https,并更改为
 r = requests.get(url, params=params, verify=False)

无法正确获取

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

4 participants