Skip to content

Commit

Permalink
Merge pull request akfamily#3442 from akfamily/develop
Browse files Browse the repository at this point in the history
fix(ws.py): remove js_news and ws interface
  • Loading branch information
albertandking authored Feb 7, 2023
2 parents c0feabc + e3e8a87 commit 0ab4e65
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 432 deletions.
8 changes: 2 additions & 6 deletions akshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2292,9 +2292,10 @@
1.8.73 add: add stock_zyjs_ths interface
1.8.74 fix: fix drewry_wci_index interface
1.8.75 add: add stock_cy_a_spot_em interface
1.8.76 remove: remove js_news and ws interface
"""

__version__ = "1.8.75"
__version__ = "1.8.76"
__author__ = "AKFamily"

import sys
Expand Down Expand Up @@ -3360,11 +3361,6 @@
index_detail_hist_adjust_cni,
)

"""
金十数据-新闻资讯
"""
from akshare.ws.js_ws_news import js_news

"""
东方财富-期权
"""
Expand Down
6 changes: 0 additions & 6 deletions akshare/ws/__init__.py

This file was deleted.

67 changes: 0 additions & 67 deletions akshare/ws/js_ws_news.py

This file was deleted.

207 changes: 0 additions & 207 deletions akshare/ws/sina_ws.py

This file was deleted.

6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@

## 更新说明

1.8.76 remove: remove js_news and ws interface

1. 移除 js_news 及 ws 相关接口

1.8.75 add: add stock_cy_a_spot_em interface

1. 新增 stock_cy_a_spot_em 接口
Expand Down Expand Up @@ -1850,6 +1854,8 @@

## 版本更新说明

1.8.76 remove: remove js_news and ws interface

1.8.75 add: add stock_cy_a_spot_em interface

1.8.74 fix: fix drewry_wci_index interface
Expand Down
1 change: 0 additions & 1 deletion docs/data/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ AKShare 数据字典
dc/dc
bank/bank
article/article
ws/ws
energy/energy
event/event
hf/hf
Expand Down
53 changes: 53 additions & 0 deletions docs/data/stock/stock.md
Original file line number Diff line number Diff line change
Expand Up @@ -7670,6 +7670,59 @@ print(news_trade_notify_dividend_baidu_df)
8 01547 2022-09-16 0.01港元 HK IBI GROUP HLDGS 2022-09-16
```

### 个股新闻

接口: stock_news_em

目标地址: http://so.eastmoney.com/news/s

描述: 东方财富指定个股的新闻资讯数据

限量: 当日最近 100 条新闻资讯数据

输入参数

| 名称 | 类型 | 描述 |
|--------|-----|-----------------------------|
| symbol | str | symbol="300059"; 股票代码或其他关键词 |

输出参数

| 名称 | 类型 | 描述 |
|------|--------|-----|
| 关键词 | object | - |
| 新闻标题 | object | - |
| 新闻内容 | object | - |
| 发布时间 | object | - |
| 文章来源 | object | - |
| 新闻链接 | object | - |

接口示例

```python
import akshare as ak

stock_news_em_df = ak.stock_news_em(symbol="300059")
print(stock_news_em_df)
```

数据示例

```
关键词 ... 新闻链接
0 300059 ... http://finance.eastmoney.com/a/202211102556856...
1 300059 ... http://finance.eastmoney.com/a/202211032549079...
2 300059 ... http://finance.eastmoney.com/a/202211012547394...
3 300059 ... http://finance.eastmoney.com/a/202210312546159...
4 300059 ... http://finance.eastmoney.com/a/202210312546176...
.. ... ... ...
95 300059 ... http://finance.eastmoney.com/a/202206172416954...
96 300059 ... http://finance.eastmoney.com/a/202202142275549...
97 300059 ... http://finance.eastmoney.com/a/202206292429344...
98 300059 ... http://finance.eastmoney.com/a/202207192454107...
99 300059 ... http://finance.eastmoney.com/a/202206212419852...
```

### 财报发行

接口: news_report_time_baidu
Expand Down
Loading

0 comments on commit 0ab4e65

Please sign in to comment.