Comments (2)
- 系统:win10
- Python 版本:3.11
- AKShare 版本:最新
- 接口的名称和代码:ak.stock_board_cons_ths
- 目前情况:无数据输出,尝试更换symbol,结果还是无数据。更换组内其他接口ak.stock_board_concept_cons_ths,ak.stock_board_concept_name_ths,ak.stock_board_concept_graph_ths有类似无数据的问题。可能与同花顺概念网站更新有关。
- Python错误提示(接口:ak.stock_board_concept_cons_ths):
Traceback (most recent call last):
File "D:\My documents\Python\pythonProject\ak.py", line 3, in
stock_board_cons_ths_df = ak.stock_board_cons_ths(symbol="885611")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\My documents\Python\pythonProject\venv\Lib\site-packages\akshare\stock_feature\stock_board_concept_ths.py", line 406, in stock_board_cons_ths
temp_df = pd.read_html(StringIO(r.text))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\My documents\Python\pythonProject\venv\Lib\site-packages\pandas\io\html.py", line 1240, in read_html
return _parse(
^^^^^^^
File "D:\My documents\Python\pythonProject\venv\Lib\site-packages\pandas\io\html.py", line 1003, in _parse
raise retained
File "D:\My documents\Python\pythonProject\venv\Lib\site-packages\pandas\io\html.py", line 983, in _parse
tables = p.parse_tables()
^^^^^^^^^^^^^^^^
File "D:\My documents\Python\pythonProject\venv\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:\My documents\Python\pythonProject\venv\Lib\site-packages\pandas\io\html.py", line 598, in _parse_tables
raise ValueError("No tables found")
ValueError: No tables found谢谢!
暂时无法访问,近期将移除该接口
from akshare.
这里存在两个问题:
- 同花顺概念代码,需要替换成内部代码, 比如885611 阿里巴巴概念, 对应的cid:301558,这样网址是:https://q.10jqka.com.cn/gn/detail/field/199112/order/desc/page/1/ajax/1/code/301558,这个网页是可以打开的。这个内部代码可以摘概念首页那里获得。
- 动态cookie会在访问多次网页会更换,而一般一个概念成分股需要超过6个网页,这样就会因为cookie改变而出问题。
希望高手有办法,谢谢!
from akshare.
Related Issues (20)
- AKShare 接口问题报告 HOT 1
- 能否新增个股资讯接口 HOT 1
- AKShare 接口问题报告 HOT 1
- 同花顺-数据中心-资金流向-个股资金流即时接口偶尔会返回13个字段产生错误,建议适配 HOT 1
- stock_a_indicator_lg出现ValueError: could not convert string to float: 'null' HOT 2
- AKShare 接口问题报告 ak.stock_info_a_code_name() HOT 3
- AKShare 接口问题报告 HOT 1
- AKShare 安装问题 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告:get_futures_daily 无法获取"DCE"市场数据 HOT 2
- macro_china_bond_public接口异常 HOT 1
- 调用案例程序出现以下问题 HOT 1
- AKShare 接口问题报告 ak.fund_scale_open_sina HOT 1
- AKShare 股票 - 深圳中小板与主板合并 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告,stock_zh_a_hist_min_em 只能获取最近的分时数据,如何可以获取历史分时数据呢,没有历史数据感觉没有多大的意义 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 1
- 能否新增雪球历史行情数据 HOT 1
- 像是内存溢出 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akshare.