akshare 1.14.98__py3-none-any.whl → 1.15.1__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 +3 -1
- akshare/stock_feature/stock_ttm_lyr.py +4 -7
- {akshare-1.14.98.dist-info → akshare-1.15.1.dist-info}/METADATA +1 -1
- {akshare-1.14.98.dist-info → akshare-1.15.1.dist-info}/RECORD +7 -7
- {akshare-1.14.98.dist-info → akshare-1.15.1.dist-info}/LICENSE +0 -0
- {akshare-1.14.98.dist-info → akshare-1.15.1.dist-info}/WHEEL +0 -0
- {akshare-1.14.98.dist-info → akshare-1.15.1.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -2909,9 +2909,11 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
2909
2909
|
1.14.96 fix: fix stock_zt_pool_sub_new_em interface
|
|
2910
2910
|
1.14.97 fix: fix stock_profile_cninfo interface
|
|
2911
2911
|
1.14.98 fix: fix futures_hold_pos_sina interface
|
|
2912
|
+
1.14.99 fix: fix stock_a_ttm_lyr interface
|
|
2913
|
+
1.15.1 fix: fix stock_a_all_pb interface
|
|
2912
2914
|
"""
|
|
2913
2915
|
|
|
2914
|
-
__version__ = "1.
|
|
2916
|
+
__version__ = "1.15.1"
|
|
2915
2917
|
__author__ = "AKFamily"
|
|
2916
2918
|
|
|
2917
2919
|
import sys
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
# -*- coding:utf-8 -*-
|
|
3
3
|
"""
|
|
4
|
-
Date:
|
|
4
|
+
Date: 2024/10/18 15:00
|
|
5
5
|
Desc: 全部A股-等权重市盈率、中位数市盈率
|
|
6
6
|
https://www.legulegu.com/stockdata/a-ttm-lyr
|
|
7
7
|
"""
|
|
8
|
+
|
|
8
9
|
import pandas as pd
|
|
9
10
|
import requests
|
|
10
11
|
|
|
@@ -26,15 +27,11 @@ def stock_a_ttm_lyr() -> pd.DataFrame:
|
|
|
26
27
|
r = requests.get(
|
|
27
28
|
url,
|
|
28
29
|
params=params,
|
|
29
|
-
**get_cookie_csrf(url="https://www.legulegu.com/stockdata/a-ttm-lyr")
|
|
30
|
+
**get_cookie_csrf(url="https://www.legulegu.com/stockdata/a-ttm-lyr"),
|
|
30
31
|
)
|
|
31
32
|
data_json = r.json()
|
|
32
33
|
temp_df = pd.DataFrame(data_json["data"])
|
|
33
|
-
temp_df["date"] = (
|
|
34
|
-
pd.to_datetime(temp_df["date"], unit="ms", utc=True)
|
|
35
|
-
.dt.tz_convert("Asia/Shanghai")
|
|
36
|
-
.dt.date
|
|
37
|
-
)
|
|
34
|
+
temp_df["date"] = pd.to_datetime(temp_df["date"], errors="coerce").dt.date
|
|
38
35
|
return temp_df
|
|
39
36
|
|
|
40
37
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=isx-ZqzUOWNWudjxcIR3v27SBUYXZOPCHiyfzjzyhIs,182303
|
|
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
|
|
@@ -338,7 +338,7 @@ akshare/stock_feature/stock_sy_em.py,sha256=GdqjWH8uVy_8st2sYENgzNlJRQxkTajDkaHB
|
|
|
338
338
|
akshare/stock_feature/stock_technology_ths.py,sha256=4u9z7H6MYEutOYAQvYfzgc_FxG6XlhkMLujSotAbraw,30827
|
|
339
339
|
akshare/stock_feature/stock_tfp_em.py,sha256=nN4gcK6hOe4tIA-nOoY_lMNC7qY7o9Ga35_-VvxS3fA,2474
|
|
340
340
|
akshare/stock_feature/stock_three_report_em.py,sha256=riIE9YwMKn279GAAdBFATTfK4_ui4X30Ew1LNcIwwsk,23675
|
|
341
|
-
akshare/stock_feature/stock_ttm_lyr.py,sha256=
|
|
341
|
+
akshare/stock_feature/stock_ttm_lyr.py,sha256=RwKMgI_A3rDRIITd_idmvlFSkn4DTUPNVfPjISSTZYw,1110
|
|
342
342
|
akshare/stock_feature/stock_wencai.py,sha256=KPwt72SOnK4dHh2vpWOHYynkj8Vrbv3AW-EXK7d3NZY,4343
|
|
343
343
|
akshare/stock_feature/stock_yjbb_em.py,sha256=J-JFnRy4M1DlM46J2ccJTdnkUrI3M2lTYj4CpzqgADo,4275
|
|
344
344
|
akshare/stock_feature/stock_yjyg_cninfo.py,sha256=DveTsc-DhLzRDBJZQ7yv8KogzG-vo3Pmr2oRgCzaH1E,2870
|
|
@@ -378,8 +378,8 @@ akshare/utils/token_process.py,sha256=K4rGXjh_tgugbRcyOK2h2x0jP3PT65IIK7nxhUKhOe
|
|
|
378
378
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
|
379
379
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
|
380
380
|
tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
|
|
381
|
-
akshare-1.
|
|
382
|
-
akshare-1.
|
|
383
|
-
akshare-1.
|
|
384
|
-
akshare-1.
|
|
385
|
-
akshare-1.
|
|
381
|
+
akshare-1.15.1.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
382
|
+
akshare-1.15.1.dist-info/METADATA,sha256=FN3Qp8695WhLlCLqz2lMtZQNRM96ulDMeIqwaXhLzhE,14162
|
|
383
|
+
akshare-1.15.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
384
|
+
akshare-1.15.1.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
385
|
+
akshare-1.15.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|