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

新浪股票行业分类数据获取不全 #433

Closed
algony-tony opened this issue Jul 24, 2017 · 1 comment
Closed

新浪股票行业分类数据获取不全 #433

algony-tony opened this issue Jul 24, 2017 · 1 comment

Comments

@algony-tony
Copy link
Contributor

ind01 = tus.get_industry_classified()
ind01.shape
现在这样获取数据只有 2373 个股票, 实际今天已经有 3300+ 支股票.

是 classifying.py 文件里这个函数取的数据不全
def _get_detail(tag, retry_count=3, pause=0.001)
比如行业 "生物制药" 生成的链接是这样的
'http://vip.stock.finance.sina.com.cn/quotes_service/api/json_v2.php/Market_Center.getHQNodeData?page=1&num=1000&sort=symbol&asc=1&node=new_swzz&symbol=&_s_r_a=page'

它这个链接一个 page 里面至多只有 100 条数据, 这里 num 应该是超过 100 就按照 100 处理里, 可能还是需要多取几个 page 才能把数据取全.

algony-tony added a commit to algony-tony/tushare that referenced this issue Jul 24, 2017
将后续页面的数据加上后, 新浪行业数据还是会比实际的股票数少, 估计是新浪那边股票分类不全
@jimmysoa
Copy link
Member

tushare升级到新版就可以了,取了get_stock_basics的数据,老版本的数据源已经不更新。

jimmysoa added a commit that referenced this issue Oct 11, 2017
fix #433 补全获取股票行业分类数据
vicjoe pushed a commit to vicjoe/tushare that referenced this issue Jun 6, 2018
将后续页面的数据加上后, 新浪行业数据还是会比实际的股票数少, 估计是新浪那边股票分类不全
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants