akshare 1.17.51__py3-none-any.whl → 1.17.52__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
@@ -3158,9 +3158,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
3158
3158
  1.17.49 fix: fix option_czce_daily interface
3159
3159
  1.17.50 fix: fix option_current_day_szse interface
3160
3160
  1.17.51 fix: fix fund_manager_em interface
3161
+ 1.17.52 fix: fix fund_overview_em interface
3161
3162
  """
3162
3163
 
3163
- __version__ = "1.17.51"
3164
+ __version__ = "1.17.52"
3164
3165
  __author__ = "AKFamily"
3165
3166
 
3166
3167
  import sys
@@ -3283,6 +3284,11 @@ from akshare.futures.futures_hist_em import futures_hist_table_em, futures_hist_
3283
3284
  """
3284
3285
  from akshare.stock.stock_hold_control_cninfo import stock_hold_change_cninfo
3285
3286
 
3287
+ """
3288
+ 天天基金-基金档案-基金基本概况
3289
+ """
3290
+ from akshare.fund.fund_overview_em import fund_overview_em
3291
+
3286
3292
  """
3287
3293
  基金费率
3288
3294
  """
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env python
2
+ # -*- coding:utf-8 -*-
3
+ """
4
+ Date: 2025/9/16 21:00
5
+ Desc: 天天基金-基金档案
6
+ https://fundf10.eastmoney.com/jbgk_015641.html
7
+ """
8
+ from io import StringIO
9
+
10
+ import pandas as pd
11
+ import requests
12
+
13
+
14
+ def fund_overview_em(symbol: str = "015641") -> pd.DataFrame:
15
+ """
16
+ 天天基金-基金档案-基本概况
17
+ https://fundf10.eastmoney.com/jbgk_015641.html
18
+ :param symbol: 基金代码
19
+ :type symbol: str
20
+ :return: 基本概况
21
+ :rtype: pandas.DataFrame
22
+ """
23
+ url = f"https://fundf10.eastmoney.com/jbgk_{symbol}.html"
24
+ r = requests.get(url)
25
+ html_content = pd.read_html(StringIO(r.text))
26
+
27
+ if len(html_content) == 0:
28
+ temp_df = pd.DataFrame([])
29
+ else:
30
+ df_dict = {}
31
+ # 最后一个表格的数据是我们想要的,按照Key-Value的形式存储
32
+ for _, row in html_content[-1].iterrows():
33
+ df_dict[row[0]] = row[1]
34
+ df_dict[row[2]] = row[3]
35
+ temp_df = pd.DataFrame([df_dict])
36
+
37
+ return temp_df
38
+
39
+
40
+ if __name__ == "__main__":
41
+ fund_overview_em_df = fund_overview_em(symbol="015641")
42
+ print(fund_overview_em_df)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akshare
3
- Version: 1.17.51
3
+ Version: 1.17.52
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=6GugM-WZM7H_xsyTFSt5uxc4glnrDxOwTooiHv31y68,197734
1
+ akshare/__init__.py,sha256=PesWSfNwtNVGeSTnm56pqJgu8z3Wv5fYlULUmOsDVl8,197891
2
2
  akshare/datasets.py,sha256=rKuRNZrqi6IMsZ9nyvO3Rx02js0tH3zMLjz8HQNAoPQ,963
3
3
  akshare/exceptions.py,sha256=WEJjIhSmJ_xXNW6grwV4nufE_cfmmyuhmueVGiN1VAg,878
4
4
  akshare/request.py,sha256=HtFFf9MhfEibR-ETWe-1Tts6ELU4VKSqA-ghaXjegQM,4252
@@ -98,6 +98,7 @@ akshare/fund/fund_fhsp_em.py,sha256=7KKvfuMpinCxRrS_ro4sFW2drEQyvoMiEbcn1LVpC-0,
98
98
  akshare/fund/fund_init_em.py,sha256=9nravXI3ayvIRyREHy07U8gO9_dPTNoh3W36iByhmhM,2225
99
99
  akshare/fund/fund_lof_em.py,sha256=ULWndoG8LswDm8NBApyxzW3-c4llseru_iU-4fnNA2w,12226
100
100
  akshare/fund/fund_manager.py,sha256=piQi1Abqm3u4E0FxTOwiTGx-KTkacH0tCxm-nALlyjY,3101
101
+ akshare/fund/fund_overview_em.py,sha256=JXjwnLRMpTp_M3cLIGrPn1kxFRiUNqUSKRaby1alMHU,1130
101
102
  akshare/fund/fund_portfolio_em.py,sha256=xRkVrDdNGmYqpHlIek5Vb0KS3788nACDLd8e6XZcrPI,10755
102
103
  akshare/fund/fund_position_lg.py,sha256=lUBAftC6pGZhDp4PqmHsUvugoKRAXX2RDF2PeI63uWY,3939
103
104
  akshare/fund/fund_rank_em.py,sha256=4JoRCwI6k1YXKGjWWG4qQBKEuHYQ3mNGBzFQqnwmWHo,17784
@@ -396,10 +397,10 @@ akshare/utils/func.py,sha256=4cwmXFztU86yJNONJ40KJLvsIEQHBbct4iMm3zT2v30,2315
396
397
  akshare/utils/multi_decrypt.py,sha256=aWoL2iEPeuXHJg8-n7OtMKixLnIhfzepACgxfrfmQB4,1657
397
398
  akshare/utils/token_process.py,sha256=nGtgnZGRprXJkhLXH8mcUH4TgIFwzsTOb0EaEPa0Euo,667
398
399
  akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
399
- akshare-1.17.51.dist-info/licenses/LICENSE,sha256=s18q7gS2g1F9-Cnk5eqrJG4OGWSwSxVEMzIuT6HyYNY,1073
400
+ akshare-1.17.52.dist-info/licenses/LICENSE,sha256=s18q7gS2g1F9-Cnk5eqrJG4OGWSwSxVEMzIuT6HyYNY,1073
400
401
  tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
401
402
  tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
402
- akshare-1.17.51.dist-info/METADATA,sha256=o1KN8ZNVz2jA9VtNcxvPA-LSUYrFdASPDuutF1NSdUw,12593
403
- akshare-1.17.51.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
404
- akshare-1.17.51.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
405
- akshare-1.17.51.dist-info/RECORD,,
403
+ akshare-1.17.52.dist-info/METADATA,sha256=pIThdE2IEKh_wrvFEJzKjpor5Kt7jbEW1Slun-_FRmY,12593
404
+ akshare-1.17.52.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
405
+ akshare-1.17.52.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
406
+ akshare-1.17.52.dist-info/RECORD,,