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