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

缺少部分股票代码 #131

Open
favoyang opened this issue Jun 5, 2023 · 2 comments
Open

缺少部分股票代码 #131

favoyang opened this issue Jun 5, 2023 · 2 comments

Comments

@favoyang
Copy link

favoyang commented Jun 5, 2023

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

@jiujiu20230
Copy link

是的

@P-Rainbow
Copy link

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

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

3 participants