akshare 1.14.86__py3-none-any.whl → 1.14.88__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
@@ -2897,9 +2897,11 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
2897
2897
  1.14.84 fix: fix drewry_wci_index interface
2898
2898
  1.14.85 fix: fix stock_profit_forecast_em interface
2899
2899
  1.14.86 fix: fix stock_comment_detail_scrd_focus_em interface
2900
+ 1.14.87 fix: fix stock_hot_search_baidu interface
2901
+ 1.14.88 fix: fix stock_hot_rank_relate_em interface
2900
2902
  """
2901
2903
 
2902
- __version__ = "1.14.86"
2904
+ __version__ = "1.14.88"
2903
2905
  __author__ = "AKFamily"
2904
2906
 
2905
2907
  import sys
@@ -5,6 +5,7 @@ Date: 2023/7/8 17:15
5
5
  Desc: 东方财富个股人气榜
6
6
  https://guba.eastmoney.com/rank/
7
7
  """
8
+
8
9
  import pandas as pd
9
10
  import requests
10
11
 
@@ -190,7 +191,7 @@ def stock_hot_rank_relate_em(symbol: str = "SZ000665") -> pd.DataFrame:
190
191
  temp_df.columns = ["时间", "-", "股票代码", "-", "相关股票代码", "涨跌幅", "-"]
191
192
  temp_df = temp_df[["时间", "股票代码", "相关股票代码", "涨跌幅"]]
192
193
  temp_df["涨跌幅"] = temp_df["涨跌幅"].str.strip("%")
193
- temp_df["涨跌幅"] = pd.to_numeric(temp_df["涨跌幅"])
194
+ temp_df["涨跌幅"] = pd.to_numeric(temp_df["涨跌幅"], errors="coerce")
194
195
  return temp_df
195
196
 
196
197
 
@@ -5,12 +5,15 @@ Date: 2023/4/21 14:19
5
5
  Desc: 百度股市通-热搜股票
6
6
  https://gushitong.baidu.com/expressnews
7
7
  """
8
+
8
9
  import pandas as pd
9
10
  import requests
10
11
  from datetime import datetime
11
12
 
12
13
 
13
- def stock_hot_search_baidu(symbol: str = "A股", date: str = "20230428", time: str = "今日"):
14
+ def stock_hot_search_baidu(
15
+ symbol: str = "A股", date: str = "20240929", time: str = "今日"
16
+ ):
14
17
  """
15
18
  百度股市通-热搜股票
16
19
  https://gushitong.baidu.com/expressnews
@@ -55,6 +58,6 @@ def stock_hot_search_baidu(symbol: str = "A股", date: str = "20230428", time: s
55
58
 
56
59
  if __name__ == "__main__":
57
60
  stock_hot_search_baidu_df = stock_hot_search_baidu(
58
- symbol="A股", date="20230428", time="今日"
61
+ symbol="A股", date="20240929", time="今日"
59
62
  )
60
63
  print(stock_hot_search_baidu_df)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: akshare
3
- Version: 1.14.86
3
+ Version: 1.14.88
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=EkIzGs9fb7gBOu8Zgd6v4LuUd7lIJNRdCO5wFGaqOz4,182138
1
+ akshare/__init__.py,sha256=4F0-PLtgAppkRuO5zt0cos-yKzo0lsKQ-twPViOQ7iE,182240
2
2
  akshare/datasets.py,sha256=-qdwaQjgBlftX84uM74KJqCYJYkQ50PV416_neA4uls,995
3
3
  akshare/air/__init__.py,sha256=RMTf1bT5EOE3ttWpn3hGu1LtUmsVxDoa0W7W0gXHOy8,81
4
4
  akshare/air/air_hebei.py,sha256=xIXNGLK7IGYqrkteM9fxnHAwWqk6PCQs6D9-ggZ7byY,4442
@@ -250,8 +250,8 @@ akshare/stock/stock_hk_sina.py,sha256=sRX977vZ_nbuJ2Y7a8WA6efHp79h2ikocH3xfZ1hLf
250
250
  akshare/stock/stock_hold_control_cninfo.py,sha256=NpUDtfYCDQGhqX1ZAL8Uy2yslZ2zc15YBrzOt5_4k6o,7065
251
251
  akshare/stock/stock_hold_control_em.py,sha256=iBgnSEV7aYdsS2Ce7ELIUqVo-polfYdqcd6UmEuVN7g,7349
252
252
  akshare/stock/stock_hold_num_cninfo.py,sha256=JY9LcZMhhTiCHfQJv4pwMrLrpUxTKGLE4oRD6pvflsU,3706
253
- akshare/stock/stock_hot_rank_em.py,sha256=F466GuUgtlJbaCdD4v8TDCV-d7PxnetEI-zRz0OTvnA,7331
254
- akshare/stock/stock_hot_search_baidu.py,sha256=nEPIgtwe0DmShUQxS6dJWG0UYlRS0zuSJTX_r8KsdEA,1762
253
+ akshare/stock/stock_hot_rank_em.py,sha256=WMbadW1CFU3ppZHMSPjG2HtXgs7PgYGugNqmyrRQQe4,7349
254
+ akshare/stock/stock_hot_search_baidu.py,sha256=Zex1iZB2qaqsxYPj6EmuzAXLbAa53W8LcePivGwrwAs,1769
255
255
  akshare/stock/stock_hot_up_em.py,sha256=sRwbpAHLzAylobUAIlVKuQo8vbuTA0Jt6gb1oiSgNwA,2509
256
256
  akshare/stock/stock_industry.py,sha256=7axm0G1EZc-G6uX9mNX4d3bHHYS_hq2tKFytxEj9YJM,5767
257
257
  akshare/stock/stock_industry_cninfo.py,sha256=dJ19zPeKRTbUrAoa8fpBB25caZuIjX92RePG8Pz-9h8,6560
@@ -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=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
383
- akshare-1.14.86.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
384
- akshare-1.14.86.dist-info/METADATA,sha256=BM6MGxB9MYIQYkigQ7B1nMOGTfofJ3TATnTM3NznCvs,14112
385
- akshare-1.14.86.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
386
- akshare-1.14.86.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
387
- akshare-1.14.86.dist-info/RECORD,,
383
+ akshare-1.14.88.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
384
+ akshare-1.14.88.dist-info/METADATA,sha256=6ZNnAlPWpOh-PmpYl8kCC1p08erEZm71KdjK4OD8pb0,14112
385
+ akshare-1.14.88.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
386
+ akshare-1.14.88.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
387
+ akshare-1.14.88.dist-info/RECORD,,