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 接口问题报告 stock_ipo_benefit_ths #4827

Closed
digger-yu opened this issue May 5, 2024 · 2 comments
Closed

AKShare 接口问题报告 stock_ipo_benefit_ths #4827

digger-yu opened this issue May 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@digger-yu
Copy link

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

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

Successfully installed akshare-1.13.62
PS D:\git\test> & d:/git/test/.venv/Scripts/python.exe d:/git/test/11.py
Traceback (most recent call last):
File "d:\git\test\11.py", line 3, in
stock_ipo_benefit_ths_df = ak.stock_ipo_benefit_ths()
File "D:\git\test.venv\lib\site-packages\akshare\stock_feature\stock_board_industry_ths.py", line 562, in stock_ipo_benefit_ths
page_num = soup.find("span", attrs={"class": "page_info"}).text.split("/")[1]
AttributeError: 'NoneType' object has no attribute 'text'

描述遇到的问题

  1. 操作系统版本 win10
  2. Python 版本 3.10.11
  3. AKShare 版本 1.13.62
  4. 接口的名称和代码stock_ipo_benefit_ths ```
    import akshare as ak

stock_ipo_benefit_ths_df = ak.stock_ipo_benefit_ths()
print(stock_ipo_benefit_ths_df)
#log
Successfully installed akshare-1.13.62
PS D:\git\test> & d:/git/test/.venv/Scripts/python.exe d:/git/test/11.py
Traceback (most recent call last):
File "d:\git\test\11.py", line 3, in
stock_ipo_benefit_ths_df = ak.stock_ipo_benefit_ths()
File "D:\git\test.venv\lib\site-packages\akshare\stock_feature\stock_board_industry_ths.py", line 562, in stock_ipo_benefit_ths
page_num = soup.find("span", attrs={"class": "page_info"}).text.split("/")[1]
AttributeError: 'NoneType' object has no attribute 'text'

7. 接口报错的截图或代码
8. 期望获得的正确结果
@digger-yu digger-yu added the bug Something isn't working label May 5, 2024
@JiangJamm
Copy link
Contributor

image
网站无数据

@albertandking
Copy link
Collaborator

image 网站无数据

对的

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

3 participants