AKShare-股票數(shù)據(jù)-個股新聞
共 3066字,需瀏覽 7分鐘
·
2024-05-24 12:19
作者寄語
本次更新股票數(shù)據(jù)-個股新聞接口。主要修復該接口,目前該接口可以獲取 關鍵詞,新聞標題,新聞內(nèi)容,發(fā)布時間,文章來源,新聞鏈接 等字段的數(shù)據(jù)。
歡迎加入專注于財經(jīng)數(shù)據(jù)和量化投資的【數(shù)據(jù)科學實戰(zhàn)】知識星球,加入方式參見文末!《AKShare 源碼解析》課程正在更新中!
更新接口
-
"stock_news_em" # 個股新聞
個股新聞
接口: stock_news_em
目標地址: https://so.eastmoney.com/news/s
描述: 東方財富指定個股的新聞資訊數(shù)據(jù)
限量: 指定 symbol 當日最近 100 條新聞資訊數(shù)據(jù)
輸入?yún)?shù)
| 名稱 | 類型 | 描述 |
|---|---|---|
| symbol | str | symbol="300059"; 股票代碼或其他關鍵詞 |
輸出參數(shù)
| 名稱 | 類型 | 描述 |
|---|---|---|
| 關鍵詞 | object | - |
| 新聞標題 | object | - |
| 新聞內(nèi)容 | object | - |
| 發(fā)布時間 | object | - |
| 文章來源 | object | - |
| 新聞鏈接 | object | - |
接口示例
import akshare as ak
stock_news_em_df = ak.stock_news_em(symbol="300059")
print(stock_news_em_df)
數(shù)據(jù)示例
關鍵詞 ... 新聞鏈接
0 300059 ... http://finance.eastmoney.com/a/202405103073124...
1 300059 ... http://finance.eastmoney.com/a/202405103073132...
2 300059 ... http://finance.eastmoney.com/a/202404243057785...
3 300059 ... http://finance.eastmoney.com/a/202404163047193...
4 300059 ... http://finance.eastmoney.com/a/202404263060328...
.. ... ... ...
95 300059 ... http://finance.eastmoney.com/a/202403213019923...
96 300059 ... http://finance.eastmoney.com/a/202403143012507...
97 300059 ... http://finance.eastmoney.com/a/202403073004835...
98 300059 ... http://finance.eastmoney.com/a/202402282997385...
99 300059 ... http://finance.eastmoney.com/a/202402282997353...
[100 rows x 6 columns]
歡迎加入專注于財經(jīng)數(shù)據(jù)和量化投資的知識星球【數(shù)據(jù)科學實戰(zhàn)】
評論
圖片
表情
