easyquotation
easyquotation copied to clipboard
缺少部分股票代码
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等
是的
同问。能否请作者过目,令这个美妙的包更加锦上添花?
作者貌似从2023年开始活跃度大大下降了...
close by 73841db3d09f8513ecf520ae0d466a147f11296d