akshare 1.17.19__py3-none-any.whl → 1.17.20__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/news/news_stock.py +8 -7
- {akshare-1.17.19.dist-info → akshare-1.17.20.dist-info}/METADATA +1 -1
- {akshare-1.17.19.dist-info → akshare-1.17.20.dist-info}/RECORD +7 -7
- {akshare-1.17.19.dist-info → akshare-1.17.20.dist-info}/WHEEL +0 -0
- {akshare-1.17.19.dist-info → akshare-1.17.20.dist-info}/licenses/LICENSE +0 -0
- {akshare-1.17.19.dist-info → akshare-1.17.20.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -3126,9 +3126,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
3126
3126
|
1.17.17 fix: fix stock_hk_spot interface
|
|
3127
3127
|
1.17.18 fix: fix option_dce_daily interface
|
|
3128
3128
|
1.17.19 fix: fix futures_spot_price_daily interface
|
|
3129
|
+
1.17.20 fix: fix stock_news_em interface
|
|
3129
3130
|
"""
|
|
3130
3131
|
|
|
3131
|
-
__version__ = "1.17.
|
|
3132
|
+
__version__ = "1.17.20"
|
|
3132
3133
|
__author__ = "AKFamily"
|
|
3133
3134
|
|
|
3134
3135
|
import sys
|
akshare/news/news_stock.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
# -*- coding:utf-8 -*-
|
|
3
3
|
"""
|
|
4
|
-
Date: 2025/
|
|
4
|
+
Date: 2025/7/11 17:15
|
|
5
5
|
Desc: 个股新闻数据
|
|
6
6
|
https://so.eastmoney.com/news/s?keyword=603777
|
|
7
7
|
"""
|
|
@@ -21,21 +21,22 @@ def stock_news_em(symbol: str = "603777") -> pd.DataFrame:
|
|
|
21
21
|
:return: 个股新闻
|
|
22
22
|
:rtype: pandas.DataFrame
|
|
23
23
|
"""
|
|
24
|
-
url = "
|
|
24
|
+
url = "http://search-api-web.eastmoney.com/search/jsonp"
|
|
25
25
|
params = {
|
|
26
26
|
"cb": "jQuery3510875346244069884_1668256937995",
|
|
27
27
|
"param": '{"uid":"",'
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
+ f'"keyword":"{symbol}"'
|
|
29
|
+
+ ',"type":["cmsArticle"],"client":"web","clientType":"web","clientVersion":"curr",'
|
|
30
|
+
+ '"param":{"cmsArticle":{"searchScope":"default","sort":"default","pageIndex":1,'
|
|
31
|
+
+ '"pageSize":100,"preTag":"<em>","postTag":"</em>"}}}',
|
|
32
32
|
}
|
|
33
33
|
r = requests.get(url, params=params)
|
|
34
34
|
data_text = r.text
|
|
35
35
|
data_json = json.loads(
|
|
36
36
|
data_text.strip("jQuery3510875346244069884_1668256937995(")[:-1]
|
|
37
37
|
)
|
|
38
|
-
temp_df = pd.DataFrame(data_json["result"]["
|
|
38
|
+
temp_df = pd.DataFrame(data_json["result"]["cmsArticle"])
|
|
39
|
+
temp_df["url"] = "http://finance.eastmoney.com/a/" + temp_df["code"] + ".html"
|
|
39
40
|
temp_df.rename(
|
|
40
41
|
columns={
|
|
41
42
|
"date": "发布时间",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=LN5ImEcdBefa97YYtXFeKhGyIL75g6GgS7fjCQc2gRw,195276
|
|
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
|
|
@@ -190,7 +190,7 @@ akshare/movie/video_yien.py,sha256=2JsyKTwiP4RTuDNzQR6d9V9fzMnByH2ATJFzdtPyXSQ,3
|
|
|
190
190
|
akshare/news/__init__.py,sha256=B7G1wejQ9jRov6hXKLh9xy4F-UcfPps3AgVLDZnKM4w,82
|
|
191
191
|
akshare/news/news_baidu.py,sha256=ZmC1Sq1sxb8Ottmzth-zjf_39Ri08oAzLB35dRNM7Xk,8276
|
|
192
192
|
akshare/news/news_cctv.py,sha256=MRODE1qilypQijyCZedgC1Ctju_3ySdJlhT2nuJcuwc,7389
|
|
193
|
-
akshare/news/news_stock.py,sha256=
|
|
193
|
+
akshare/news/news_stock.py,sha256=LbkFdMPUK0b5Iw7yR_dBrpWUUb6GOd2N9Jt_vmRk968,2792
|
|
194
194
|
akshare/nlp/__init__.py,sha256=F-1D7ifZQ4RiE2zsQuPc4Aj_C7RhqxGPvObcRNcLPGs,79
|
|
195
195
|
akshare/nlp/nlp_interface.py,sha256=PyZjT3PkuTbloop-JwLwZ2kNi22zdO-r_pRUWQ5SmgM,1856
|
|
196
196
|
akshare/option/__init__.py,sha256=RMTf1bT5EOE3ttWpn3hGu1LtUmsVxDoa0W7W0gXHOy8,81
|
|
@@ -392,10 +392,10 @@ akshare/utils/func.py,sha256=4cwmXFztU86yJNONJ40KJLvsIEQHBbct4iMm3zT2v30,2315
|
|
|
392
392
|
akshare/utils/multi_decrypt.py,sha256=aWoL2iEPeuXHJg8-n7OtMKixLnIhfzepACgxfrfmQB4,1657
|
|
393
393
|
akshare/utils/token_process.py,sha256=nGtgnZGRprXJkhLXH8mcUH4TgIFwzsTOb0EaEPa0Euo,667
|
|
394
394
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
|
395
|
-
akshare-1.17.
|
|
395
|
+
akshare-1.17.20.dist-info/licenses/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
396
396
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
|
397
397
|
tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
|
|
398
|
-
akshare-1.17.
|
|
399
|
-
akshare-1.17.
|
|
400
|
-
akshare-1.17.
|
|
401
|
-
akshare-1.17.
|
|
398
|
+
akshare-1.17.20.dist-info/METADATA,sha256=5gMfrIOXB5QyzrsV7uSQqWpvHtjWvMq_rMJ3nfmtjLc,11902
|
|
399
|
+
akshare-1.17.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
400
|
+
akshare-1.17.20.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
401
|
+
akshare-1.17.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|