akshare 1.17.3__py3-none-any.whl → 1.17.4__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.
akshare/__init__.py CHANGED
@@ -3110,9 +3110,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
3110
3110
  1.17.1 fix: fix stock_gdfx_holding_detail_em interface
3111
3111
  1.17.2 fix: fix stock_ggcg_em interface
3112
3112
  1.17.3 fix: fix stock_hot_search_baidu interface
3113
+ 1.17.4 fix: fix stock_news_em interface
3113
3114
  """
3114
3115
 
3115
- __version__ = "1.17.3"
3116
+ __version__ = "1.17.4"
3116
3117
  __author__ = "AKFamily"
3117
3118
 
3118
3119
  import sys
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding:utf-8 -*-
3
3
  """
4
- Date: 2024/05/23 14:00
4
+ Date: 2025/6/16 20:00
5
5
  Desc: 个股新闻数据
6
- https://so.eastmoney.com/news/s?keyword=%E4%B8%AD%E5%9B%BD%E4%BA%BA%E5%AF%BF&pageindex=1&searchrange=8192&sortfiled=4
6
+ https://so.eastmoney.com/news/s?keyword=603777
7
7
  """
8
8
 
9
9
  import json
@@ -12,23 +12,23 @@ import pandas as pd
12
12
  import requests
13
13
 
14
14
 
15
- def stock_news_em(symbol: str = "300059") -> pd.DataFrame:
15
+ def stock_news_em(symbol: str = "603777") -> pd.DataFrame:
16
16
  """
17
17
  东方财富-个股新闻-最近 100 条新闻
18
- https://so.eastmoney.com/news/s?keyword=%E4%B8%AD%E5%9B%BD%E4%BA%BA%E5%AF%BF&pageindex=1&searchrange=8192&sortfiled=4
18
+ https://so.eastmoney.com/news/s?keyword=603777
19
19
  :param symbol: 股票代码
20
20
  :type symbol: str
21
21
  :return: 个股新闻
22
22
  :rtype: pandas.DataFrame
23
23
  """
24
- url = "http://search-api-web.eastmoney.com/search/jsonp"
24
+ url = "https://search-api-web.eastmoney.com/search/jsonp"
25
25
  params = {
26
26
  "cb": "jQuery3510875346244069884_1668256937995",
27
27
  "param": '{"uid":"",'
28
- + f'"keyword":"{symbol}"'
29
- + ',"type":["cmsArticleWebOld"],"client":"web","clientType":"web","clientVersion":"curr",'
30
- '"param":{"cmsArticleWebOld":{"searchScope":"default","sort":"default","pageIndex":1,'
31
- '"pageSize":100,"preTag":"<em>","postTag":"</em>"}}}',
28
+ + f'"keyword":"{symbol}"'
29
+ + ',"type":["cmsArticleWebOld"],"client":"web","clientType":"web","clientVersion":"curr",'
30
+ '"param":{"cmsArticleWebOld":{"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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akshare
3
- Version: 1.17.3
3
+ Version: 1.17.4
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=0M2Dz7KVKoBTGVCawF_t2WU3tAh1AEB9ZHRUTZySwFM,194519
1
+ akshare/__init__.py,sha256=twJAGFkSIFLrKHrK1E70Rd2OLGdMNShna9kAF5LEMgg,194559
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=0M1BDmSJ8T6qykgv5YLN7qruNQkm7bU4KbbcaA-Mv7Y,2866
193
+ akshare/news/news_stock.py,sha256=5OErvZ40VngGQ1ORaLjDlvqXvwh7RMewcmq-zmKWMME,2764
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.3.dist-info/licenses/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
395
+ akshare-1.17.4.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.3.dist-info/METADATA,sha256=A-ixsyIldqdipU4YSFykxllLnVi8GSu2vfRro0hgBeQ,11901
399
- akshare-1.17.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
400
- akshare-1.17.3.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
401
- akshare-1.17.3.dist-info/RECORD,,
398
+ akshare-1.17.4.dist-info/METADATA,sha256=7xQNnRGIghEd_sQJBZ_t2BooXUMLmxw0HQ_1G4W3oN4,11901
399
+ akshare-1.17.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
400
+ akshare-1.17.4.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
401
+ akshare-1.17.4.dist-info/RECORD,,