easyquotation icon indicating copy to clipboard operation
easyquotation copied to clipboard

缺少部分股票代码

Open favoyang opened this issue 2 years ago • 2 comments

def update_stock_codes():
    """获取所有股票 ID 到 all_stock_code 目录下"""
    response = requests.get("http://www.shdjt.com/js/lib/astock.js")
    stock_codes = re.findall(r"~([a-z0-9]*)`", response.text)
    with open(STOCK_CODE_PATH, "w") as f:
        f.write(json.dumps(dict(stock=stock_codes)))
    return stock_codes

http://www.shdjt.com/js/lib/astock.js数据源缺少大量新股,例如601133, 301353

favoyang avatar Jun 05 '23 02:06 favoyang

是的

jiujiu20230 avatar Nov 23 '23 16:11 jiujiu20230

同问。能否请作者过目,令这个美妙的包更加锦上添花?

P-Rainbow avatar Jul 22 '24 07:07 P-Rainbow

作者貌似从2023年开始活跃度大大下降了...

happybasic avatar Feb 05 '25 00:02 happybasic

close by 73841db3d09f8513ecf520ae0d466a147f11296d

shidenggui avatar Mar 25 '25 14:03 shidenggui