efinance icon indicating copy to clipboard operation
efinance copied to clipboard

如何获取概念板块的成分股呢

Open xiaoxiaodetian opened this issue 2 years ago • 3 comments

如何获取概念板块的成分股呢?

xiaoxiaodetian avatar Jun 26 '22 12:06 xiaoxiaodetian

下面是例子

from efinance.common import get_realtime_quotes_by_fs
import efinance as ef
ef.stock.get_realtime_quotes('概念板块')
get_realtime_quotes_by_fs('b:BK1032')

image image

Micro-sheep avatar Jun 26 '22 13:06 Micro-sheep

感谢

xiaoxiaodetian avatar Jun 27 '22 03:06 xiaoxiaodetian

东财的概念成分股和同花顺的很多都不一样,能否同时获取到同花顺的概念成分股? 这边简单用爬虫试了一下,同花顺有反爬机制,爬取失败了

xiaoxiaodetian avatar Jun 28 '22 13:06 xiaoxiaodetian