mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-28 12:13:11 +00:00
* feat: fixes on docs website * fix: tab issue * fix: wordwrap by default cannot happen in every codeblock
45 lines
883 B
Markdown
Vendored
45 lines
883 B
Markdown
Vendored
---
|
|
title: news
|
|
description: OpenBB SDK Function
|
|
---
|
|
|
|
# news
|
|
|
|
Get news for a given term and source. [Source: Feedparser]
|
|
|
|
Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/feedparser_model.py#L13)]
|
|
|
|
```python
|
|
openbb.news(term: str = "", sources: str = "", sort: str = "published")
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Type | Description | Default | Optional |
|
|
| ---- | ---- | ----------- | ------- | -------- |
|
|
| term | str | term to search on the news articles | | True |
|
|
| sources | str | sources to exclusively show news from (separated by commas) | | True |
|
|
| sort | str | the column to sort by | published | True |
|
|
|
|
|
|
---
|
|
|
|
## Returns
|
|
|
|
| Type | Description |
|
|
| ---- | ----------- |
|
|
| pd.DataFrame | term to search on the news articles |
|
|
---
|
|
|
|
## Examples
|
|
|
|
```python
|
|
from openbb_terminal.sdk import openbb
|
|
openbb.news()
|
|
```
|
|
|
|
---
|
|
|