akshare 1.14.81__py3-none-any.whl → 1.14.82__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 +2 -1
- akshare/stock_feature/stock_comment_em.py +29 -34
- {akshare-1.14.81.dist-info → akshare-1.14.82.dist-info}/METADATA +1 -1
- {akshare-1.14.81.dist-info → akshare-1.14.82.dist-info}/RECORD +7 -7
- {akshare-1.14.81.dist-info → akshare-1.14.82.dist-info}/LICENSE +0 -0
- {akshare-1.14.81.dist-info → akshare-1.14.82.dist-info}/WHEEL +0 -0
- {akshare-1.14.81.dist-info → akshare-1.14.82.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -2892,9 +2892,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
2892
2892
|
1.14.79 add: add stock_zcfz_bj_em interface
|
|
2893
2893
|
1.14.80 fix: fix stock_hot_rank_wc interface
|
|
2894
2894
|
1.14.81 fix: fix stock_hsgt_hist_em interface
|
|
2895
|
+
1.14.82 fix: fix stock_comment_detail_scrd_desire_daily_em interface
|
|
2895
2896
|
"""
|
|
2896
2897
|
|
|
2897
|
-
__version__ = "1.14.
|
|
2898
|
+
__version__ = "1.14.82"
|
|
2898
2899
|
__author__ = "AKFamily"
|
|
2899
2900
|
|
|
2900
2901
|
import sys
|
|
@@ -289,42 +289,37 @@ def stock_comment_detail_scrd_desire_daily_em(
|
|
|
289
289
|
:return: 市场热度-日度市场参与意愿
|
|
290
290
|
:rtype: pandas.DataFrame
|
|
291
291
|
"""
|
|
292
|
-
url =
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
292
|
+
url = "https://datacenter-web.eastmoney.com/api/data/v1/get"
|
|
293
|
+
params = {
|
|
294
|
+
"filter": f'(SECURITY_CODE="{symbol}")',
|
|
295
|
+
"columns": "ALL",
|
|
296
|
+
"source": "WEB",
|
|
297
|
+
"client": "WEB",
|
|
298
|
+
"reportName": "RPT_STOCK_PARTICIPATION",
|
|
299
|
+
"sortColumns": "TRADE_DATE",
|
|
300
|
+
"sortTypes": "-1",
|
|
301
|
+
"pageSize": "30",
|
|
302
|
+
"_": "1727189719991",
|
|
303
|
+
}
|
|
304
|
+
r = requests.get(url=url, params=params)
|
|
305
|
+
data_json = r.json()
|
|
306
|
+
temp_df = pd.DataFrame(data_json["result"]["data"])
|
|
307
|
+
temp_df.rename(
|
|
308
|
+
columns={
|
|
309
|
+
"PARTICIPATION_WISH_5DAYSCHANGE": "5日平均参与意愿变化",
|
|
310
|
+
"PARTICIPATION_WISH_CHANGE": "当日意愿上升",
|
|
311
|
+
"TRADE_DATE": "交易日",
|
|
312
|
+
},
|
|
313
|
+
inplace=True,
|
|
309
314
|
)
|
|
310
|
-
|
|
311
|
-
temp_df = pd.
|
|
312
|
-
|
|
313
|
-
data_json["ApiResults"]["scrd"]["desire"][2]["XData"],
|
|
314
|
-
data_json["ApiResults"]["scrd"]["desire"][2]["Ydata"]["PeopleNumChg"],
|
|
315
|
-
data_json["ApiResults"]["scrd"]["desire"][2]["Ydata"][
|
|
316
|
-
"TotalPeopleNumChange"
|
|
317
|
-
],
|
|
318
|
-
]
|
|
319
|
-
).T
|
|
320
|
-
temp_df.columns = ["日期", "当日意愿下降", "五日累计意愿"]
|
|
321
|
-
temp_df["日期"] = date_str[:4] + "-" + temp_df["日期"]
|
|
322
|
-
temp_df["日期"] = pd.to_datetime(temp_df["日期"], errors="coerce").dt.date
|
|
323
|
-
|
|
324
|
-
temp_df.sort_values(by=["日期"], inplace=True)
|
|
315
|
+
temp_df = temp_df[["交易日", "当日意愿上升", "5日平均参与意愿变化"]]
|
|
316
|
+
temp_df["交易日"] = pd.to_datetime(temp_df["交易日"], errors="coerce").dt.date
|
|
317
|
+
temp_df.sort_values(by=["交易日"], inplace=True)
|
|
325
318
|
temp_df.reset_index(inplace=True, drop=True)
|
|
326
|
-
temp_df["
|
|
327
|
-
temp_df["
|
|
319
|
+
temp_df["当日意愿上升"] = pd.to_numeric(temp_df["当日意愿上升"], errors="coerce")
|
|
320
|
+
temp_df["5日平均参与意愿变化"] = pd.to_numeric(
|
|
321
|
+
temp_df["5日平均参与意愿变化"], errors="coerce"
|
|
322
|
+
)
|
|
328
323
|
return temp_df
|
|
329
324
|
|
|
330
325
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=YO9Udam6vO1ZAFhd8UC05cTlFrdL4plge5YA8Ue3_JY,181919
|
|
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
|
|
@@ -296,7 +296,7 @@ akshare/stock_feature/stock_analyst_em.py,sha256=Md3_G-Px0O1lk4dx5dCEKl8Vjgwt79S
|
|
|
296
296
|
akshare/stock_feature/stock_board_industry_ths.py,sha256=bn4vPXaK_ybU-qUttQshnzFC1L_S9reO2OydmAt7sGI,12488
|
|
297
297
|
akshare/stock_feature/stock_buffett_index_lg.py,sha256=NpNccHmGjtqLz6aUladB6InPzO2pjoImbgCgmNEYUuM,2027
|
|
298
298
|
akshare/stock_feature/stock_classify_sina.py,sha256=Lg7ROG5W9HioFRplJI2rZ6tAAHM09N3g9qF6kReIQYI,3210
|
|
299
|
-
akshare/stock_feature/stock_comment_em.py,sha256=
|
|
299
|
+
akshare/stock_feature/stock_comment_em.py,sha256=JX_CanyJdHPr-tAEobOJegk0csikJqcykBdzrxFUNDs,14180
|
|
300
300
|
akshare/stock_feature/stock_concept_futu.py,sha256=jKJ9mfdJXgXwcMb3gVpbDl5ivr-zcMkuGO7jjgyA3os,6228
|
|
301
301
|
akshare/stock_feature/stock_congestion_lg.py,sha256=iTEcmL0HoSqWGfxv_gSM-qA4O23aqUH7qHl9asDtoO0,1299
|
|
302
302
|
akshare/stock_feature/stock_cyq_em.py,sha256=ijHL6BWGDLI8dctYQ4pYWDK2UHOSfn5mRu0c9E5zwp0,11017
|
|
@@ -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.
|
|
384
|
-
akshare-1.14.
|
|
385
|
-
akshare-1.14.
|
|
386
|
-
akshare-1.14.
|
|
387
|
-
akshare-1.14.
|
|
383
|
+
akshare-1.14.82.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
384
|
+
akshare-1.14.82.dist-info/METADATA,sha256=KcKXIUdRYEV1AvzrfsfGYiYCJgd0D0al40Z5sSzMcVc,14112
|
|
385
|
+
akshare-1.14.82.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
386
|
+
akshare-1.14.82.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
387
|
+
akshare-1.14.82.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|