We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 版本是最新的
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'
描述遇到的问题
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. 期望获得的正确结果
The text was updated successfully, but these errors were encountered:
网站无数据
Sorry, something went wrong.
对的
No branches or pull requests
遇到任何问题,请先确认您的 AKShare 版本是最新的
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'
描述遇到的问题
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'
The text was updated successfully, but these errors were encountered: