akshare 1.14.61__py3-none-any.whl → 1.14.62__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of akshare might be problematic. Click here for more details.

akshare/__init__.py CHANGED
@@ -2872,9 +2872,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
2872
2872
  1.14.59 fix: fix macro_cnbs interface
2873
2873
  1.14.60 fix: fix bond_zh_cov_info_ths interface
2874
2874
  1.14.61 fix: fix stock_fund_flow_individual interface
2875
+ 1.14.62 fix: fix stock_zt_pool_em interface
2875
2876
  """
2876
2877
 
2877
- __version__ = "1.14.61"
2878
+ __version__ = "1.14.62"
2878
2879
  __author__ = "AKFamily"
2879
2880
 
2880
2881
  import sys
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding:utf-8 -*-
3
3
  """
4
- Date: 2024/4/25 20:00
4
+ Date: 2024/8/18 17:30
5
5
  Desc: 首页-行情中心-涨停板行情-涨停股池
6
6
  https://quote.eastmoney.com/ztb/detail#type=ztgc
7
7
 
@@ -44,6 +44,8 @@ def stock_zt_pool_em(date: str = "20231129") -> pd.DataFrame:
44
44
  data_json = r.json()
45
45
  if data_json["data"] is None:
46
46
  return pd.DataFrame()
47
+ if len(data_json["data"]["pool"]) == 0:
48
+ return pd.DataFrame()
47
49
  temp_df = pd.DataFrame(data_json["data"]["pool"])
48
50
  temp_df.reset_index(inplace=True)
49
51
  temp_df["index"] = range(1, len(temp_df) + 1)
@@ -129,6 +131,8 @@ def stock_zt_pool_previous_em(date: str = "20240415") -> pd.DataFrame:
129
131
  data_json = r.json()
130
132
  if data_json["data"] is None:
131
133
  return pd.DataFrame()
134
+ if len(data_json["data"]["pool"]) == 0:
135
+ return pd.DataFrame()
132
136
  temp_df = pd.DataFrame(data_json["data"]["pool"])
133
137
  temp_df.reset_index(inplace=True)
134
138
  temp_df["index"] = range(1, len(temp_df) + 1)
@@ -205,6 +209,8 @@ def stock_zt_pool_strong_em(date: str = "20231129") -> pd.DataFrame:
205
209
  data_json = r.json()
206
210
  if data_json["data"] is None:
207
211
  return pd.DataFrame()
212
+ if len(data_json["data"]["pool"]) == 0:
213
+ return pd.DataFrame()
208
214
  temp_df = pd.DataFrame(data_json["data"]["pool"])
209
215
  temp_df.reset_index(inplace=True)
210
216
  temp_df["index"] = range(1, len(temp_df) + 1)
@@ -279,7 +285,7 @@ def stock_zt_pool_sub_new_em(date: str = "20231129") -> pd.DataFrame:
279
285
  }
280
286
  r = requests.get(url, params=params)
281
287
  data_json = r.json()
282
- if data_json["data"]["pool"] == 0:
288
+ if len(data_json["data"]["pool"]) == 0:
283
289
  return pd.DataFrame()
284
290
  temp_df = pd.DataFrame(data_json["data"]["pool"])
285
291
  temp_df.reset_index(inplace=True)
@@ -367,6 +373,8 @@ def stock_zt_pool_zbgc_em(date: str = "20231129") -> pd.DataFrame:
367
373
  data_json = r.json()
368
374
  if data_json["data"] is None:
369
375
  return pd.DataFrame()
376
+ if len(data_json["data"]["pool"]) == 0:
377
+ return pd.DataFrame()
370
378
  temp_df = pd.DataFrame(data_json["data"]["pool"])
371
379
  temp_df.reset_index(inplace=True)
372
380
  temp_df["index"] = range(1, len(temp_df) + 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: akshare
3
- Version: 1.14.61
3
+ Version: 1.14.62
4
4
  Summary: AKShare is an elegant and simple financial data interface library for Python, built for human beings!
5
5
  Home-page: https://github.com/akfamily/akshare
6
6
  Author: AKFamily
@@ -1,4 +1,4 @@
1
- akshare/__init__.py,sha256=cHN4e26HGO2wVkiuezG_GREKfXBiE1ks9zcDqrg0nKk,180882
1
+ akshare/__init__.py,sha256=zKOCfXdNcu0_EpBNiD9EkyTeJ9kVUwps-TxmARnjLGQ,180926
2
2
  akshare/datasets.py,sha256=oIu1zC7o_LMHY22lQmdM7vCnryHibKrJLBqJwQiitlI,1167
3
3
  akshare/air/__init__.py,sha256=RMTf1bT5EOE3ttWpn3hGu1LtUmsVxDoa0W7W0gXHOy8,81
4
4
  akshare/air/air_hebei.py,sha256=xIXNGLK7IGYqrkteM9fxnHAwWqk6PCQs6D9-ggZ7byY,4442
@@ -350,7 +350,7 @@ akshare/stock_feature/stock_zdhtmx_em.py,sha256=2BpJQntGgUlEIOmDlepOiOkw-e-tKLRa
350
350
  akshare/stock_feature/stock_zf_pg.py,sha256=nYJ1uLOBdzM_PDyq4MNeWoCTripFMAPoAiaPfhDqkcg,6343
351
351
  akshare/stock_feature/stock_zh_valuation_baidu.py,sha256=oxYIHP68pFvAYyqjCvZp3a9tpczTFiWhSxZ0w4eyo7I,1904
352
352
  akshare/stock_feature/stock_zh_vote_baidu.py,sha256=SsSNnCq7PDFMzWFcPFcC_MSc9rua412P14vHc923gmo,1761
353
- akshare/stock_feature/stock_ztb_em.py,sha256=-g4FeUypgf_K0B41udpBAdqa43o27KHDx8mXoyzCOfo,16718
353
+ akshare/stock_feature/stock_ztb_em.py,sha256=VaA1Hj0ExzTR7wi5mj_Ruhgvl5bZNyKINiKR2p9n73Y,17019
354
354
  akshare/stock_feature/ths.js,sha256=AWPkHf3L2Il1UUL0F5qDqNn1dfU0OlZBNUbMf8AmI3Y,39664
355
355
  akshare/stock_fundamental/__init__.py,sha256=jiXoO9OXiMxB0wHaPQkuxNckYuoFKtzuhZL1ytnE2nQ,82
356
356
  akshare/stock_fundamental/stock_finance.py,sha256=d10iE6BPMsEEPDk7-Xd5_3EnHWlUv5Y_7t7ibniW0A4,30687
@@ -380,8 +380,8 @@ akshare/utils/token_process.py,sha256=K4rGXjh_tgugbRcyOK2h2x0jP3PT65IIK7nxhUKhOe
380
380
  akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
381
381
  tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
382
382
  tests/test_func.py,sha256=tfvy_YnYmDra2dkKZ5JvprU1gNW5X9T634PszdSdH1A,944
383
- akshare-1.14.61.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
384
- akshare-1.14.61.dist-info/METADATA,sha256=_nH8QPmIkI4M81cjUHqTJGidRnbdBwUSkUjZauJjgc0,13961
385
- akshare-1.14.61.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
386
- akshare-1.14.61.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
387
- akshare-1.14.61.dist-info/RECORD,,
383
+ akshare-1.14.62.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
384
+ akshare-1.14.62.dist-info/METADATA,sha256=NCzoVF8-6-HtUvyEQ89rRONV_-GhO9UxAIYp7YYek94,13961
385
+ akshare-1.14.62.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
386
+ akshare-1.14.62.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
387
+ akshare-1.14.62.dist-info/RECORD,,