macmini可以直接连自己的局域网ip,不需要通过host.docker.internal
This commit is contained in:
@@ -3,7 +3,7 @@ import re
|
||||
import akshare as ak
|
||||
import pandas as pd
|
||||
from loguru import logger
|
||||
from index_spot import stock_zh_index_spot_em
|
||||
|
||||
|
||||
# index_hist_df = ak.index_zh_a_hist(
|
||||
# symbol="000001", # 指数代码,如上证指数
|
||||
@@ -18,7 +18,7 @@ def get_all_stock_index():
|
||||
index_df_list = []
|
||||
for source in index_choice:
|
||||
logger.info(f"正在获取 {source}...")
|
||||
index_df = stock_zh_index_spot_em(symbol=source)
|
||||
index_df = ak.stock_zh_index_spot_em(symbol=source)
|
||||
index_df["symbol"] = source
|
||||
index_df_list.append(index_df)
|
||||
logger.info(f"{source}: {index_df.shape[0]}")
|
||||
|
||||
Reference in New Issue
Block a user