From 4c2689cf159415f5b90128540475492ef77a75a8 Mon Sep 17 00:00:00 2001 From: jindaxiang Date: Fri, 3 Jan 2025 18:52:34 +0800 Subject: [PATCH] fix: fix index_stock_cons_csindex --- akshare/index/index_cons.py | 4 ++-- akshare/index/index_stock_zh_csindex.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/akshare/index/index_cons.py b/akshare/index/index_cons.py index cccaca49435..bc038f52521 100644 --- a/akshare/index/index_cons.py +++ b/akshare/index/index_cons.py @@ -133,7 +133,7 @@ def index_stock_cons_csindex(symbol: str = "000300") -> pd.DataFrame: :rtype: pandas.DataFrame """ url = ( - f"https://csi-web-dev.oss-cn-shanghai-finance-1-pub.aliyuncs.com/static/" + f"https://oss-ch.csindex.com.cn/static/" f"html/csindex/public/uploads/file/autofile/cons/{symbol}cons.xls" ) r = requests.get(url) @@ -167,7 +167,7 @@ def index_stock_cons_weight_csindex(symbol: str = "000300") -> pd.DataFrame: :rtype: pandas.DataFrame """ url = ( - f"https://csi-web-dev.oss-cn-shanghai-finance-1-pub.aliyuncs.com/static/html/csindex/" + f"https://oss-ch.csindex.com.cn/static/html/csindex/" f"public/uploads/file/autofile/closeweight/{symbol}closeweight.xls" ) r = requests.get(url) diff --git a/akshare/index/index_stock_zh_csindex.py b/akshare/index/index_stock_zh_csindex.py index 0e73c213c0a..1ebcd194b66 100644 --- a/akshare/index/index_stock_zh_csindex.py +++ b/akshare/index/index_stock_zh_csindex.py @@ -79,7 +79,7 @@ def stock_zh_index_value_csindex(symbol: str = "H30374") -> pd.DataFrame: :rtype: pandas.DataFrame """ url = ( - f"https://csi-web-dev.oss-cn-shanghai-finance-1-pub.aliyuncs.com/static/" + f"https://oss-ch.csindex.com.cn/static/" f"html/csindex/public/uploads/file/autofile/indicator/{symbol}indicator.xls" ) temp_df = pd.read_excel(url)