akshare 1.15.85__py3-none-any.whl → 1.15.86__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
@@ -2995,9 +2995,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
2995
2995
  1.15.83 fix: fix stock_szse_sector_summary interface
2996
2996
  1.15.84 fix: fix option_dce_daily interface
2997
2997
  1.15.85 fix: fix stock_gddh_em interface
2998
+ 1.15.86 fix: fix stock_zdhtmx_em interface
2998
2999
  """
2999
3000
 
3000
- __version__ = "1.15.85"
3001
+ __version__ = "1.15.86"
3001
3002
  __author__ = "AKFamily"
3002
3003
 
3003
3004
  import sys
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding:utf-8 -*-
3
3
  """
4
- Date: 2023/8/19 20:32
4
+ Date: 2025/2/11 20:32
5
5
  Desc: 东方财富网-数据中心-重大合同-重大合同明细
6
6
  https://data.eastmoney.com/zdht/mx.html
7
7
  """
8
+
8
9
  import pandas as pd
9
10
  import requests
10
- from tqdm import tqdm
11
+ from akshare.utils.tqdm import get_tqdm
11
12
 
12
13
 
13
14
  def stock_zdhtmx_em(
@@ -19,6 +20,9 @@ def stock_zdhtmx_em(
19
20
  :return: 股东大会
20
21
  :rtype: pandas.DataFrame
21
22
  """
23
+ import warnings
24
+
25
+ warnings.filterwarnings(action="ignore", category=FutureWarning)
22
26
  url = "https://datacenter-web.eastmoney.com/api/data/v1/get"
23
27
  params = {
24
28
  "sortColumns": "DIM_RDATE",
@@ -28,12 +32,14 @@ def stock_zdhtmx_em(
28
32
  "columns": "ALL",
29
33
  "token": "894050c76af8597a853f5b408b759f5d",
30
34
  "reportName": "RPTA_WEB_ZDHT_LIST",
31
- "filter": f"""(DIM_RDATE>='{"-".join([start_date[:4], start_date[4:6], start_date[6:]])}')(DIM_RDATE<='{"-".join([end_date[:4], end_date[4:6], end_date[6:]])}')""",
35
+ "filter": f"""(DIM_RDATE>='{"-".join([start_date[:4], start_date[4:6], start_date[6:]])}')
36
+ (DIM_RDATE<='{"-".join([end_date[:4], end_date[4:6], end_date[6:]])}')""",
32
37
  }
33
38
  r = requests.get(url, params=params)
34
39
  data_json = r.json()
35
40
  total_page = data_json["result"]["pages"]
36
41
  big_df = pd.DataFrame()
42
+ tqdm = get_tqdm()
37
43
  for page in tqdm(range(1, total_page + 1), leave=False):
38
44
  params.update(
39
45
  {
@@ -43,7 +49,7 @@ def stock_zdhtmx_em(
43
49
  r = requests.get(url, params=params)
44
50
  data_json = r.json()
45
51
  temp_df = pd.DataFrame(data_json["result"]["data"])
46
- big_df = pd.concat([big_df, temp_df], axis=0, ignore_index=True)
52
+ big_df = pd.concat(objs=[big_df, temp_df], axis=0, ignore_index=True)
47
53
  big_df.reset_index(inplace=True)
48
54
  big_df["index"] = big_df["index"] + 1
49
55
  big_df.rename(
@@ -101,8 +107,12 @@ def stock_zdhtmx_em(
101
107
  big_df["公告日期"] = pd.to_datetime(big_df["公告日期"], errors="coerce").dt.date
102
108
  big_df["合同金额"] = pd.to_numeric(big_df["合同金额"], errors="coerce")
103
109
  big_df["上年度营业收入"] = pd.to_numeric(big_df["上年度营业收入"], errors="coerce")
104
- big_df["占上年度营业收入比例"] = pd.to_numeric(big_df["占上年度营业收入比例"], errors="coerce")
105
- big_df["最新财务报表的营业收入"] = pd.to_numeric(big_df["最新财务报表的营业收入"], errors="coerce")
110
+ big_df["占上年度营业收入比例"] = pd.to_numeric(
111
+ big_df["占上年度营业收入比例"], errors="coerce"
112
+ )
113
+ big_df["最新财务报表的营业收入"] = pd.to_numeric(
114
+ big_df["最新财务报表的营业收入"], errors="coerce"
115
+ )
106
116
  return big_df
107
117
 
108
118
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: akshare
3
- Version: 1.15.85
3
+ Version: 1.15.86
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=GjfQo3PkBi5hufDAfY92Cm7-6uHIk2cQBpJOSMa5jv4,186840
1
+ akshare/__init__.py,sha256=fW5bZMjmcN526kpsUiiaSP97n1auQPoQ0yaNTexZUZs,186883
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
@@ -345,7 +345,7 @@ akshare/stock_feature/stock_yjbb_em.py,sha256=J-JFnRy4M1DlM46J2ccJTdnkUrI3M2lTYj
345
345
  akshare/stock_feature/stock_yjyg_cninfo.py,sha256=DveTsc-DhLzRDBJZQ7yv8KogzG-vo3Pmr2oRgCzaH1E,2870
346
346
  akshare/stock_feature/stock_yjyg_em.py,sha256=CnpSNyOUYVzoduFTVwsERtdp_uJimlHddw4uWV0iDmc,12184
347
347
  akshare/stock_feature/stock_yzxdr_em.py,sha256=-16KDPtBDXkbHRs7aNAyPy35XurDj7LIcbWAtmgvP64,3219
348
- akshare/stock_feature/stock_zdhtmx_em.py,sha256=2BpJQntGgUlEIOmDlepOiOkw-e-tKLRaY-O7bNSbiIo,4153
348
+ akshare/stock_feature/stock_zdhtmx_em.py,sha256=AwJajapk-Y59usiw6p0fBYVkqTDAXBQsxFEmo4sfkE4,4326
349
349
  akshare/stock_feature/stock_zf_pg.py,sha256=nYJ1uLOBdzM_PDyq4MNeWoCTripFMAPoAiaPfhDqkcg,6343
350
350
  akshare/stock_feature/stock_zh_valuation_baidu.py,sha256=oxYIHP68pFvAYyqjCvZp3a9tpczTFiWhSxZ0w4eyo7I,1904
351
351
  akshare/stock_feature/stock_zh_vote_baidu.py,sha256=SsSNnCq7PDFMzWFcPFcC_MSc9rua412P14vHc923gmo,1761
@@ -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.15.85.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
384
- akshare-1.15.85.dist-info/METADATA,sha256=N2wlQIM5XSQ-Xqf031_xEhc-XipHV5BFGyuK1tf3s6I,13679
385
- akshare-1.15.85.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
386
- akshare-1.15.85.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
387
- akshare-1.15.85.dist-info/RECORD,,
383
+ akshare-1.15.86.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
384
+ akshare-1.15.86.dist-info/METADATA,sha256=--Ircg6PIKICrg10sE11cIplNQZkcZe2Mc86LOI650A,13679
385
+ akshare-1.15.86.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
386
+ akshare-1.15.86.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
387
+ akshare-1.15.86.dist-info/RECORD,,