# RSSFeedLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/rss/RSSFeedLoader)

Load news articles from `RSS` feeds using `Unstructured`.

## Signature

```python
RSSFeedLoader(
    self,
    urls: Optional[Sequence[str]] = None,
    opml: Optional[str] = None,
    continue_on_failure: bool = True,
    show_progress_bar: bool = False,
    **newsloader_kwargs: Any = {},
)
```

## Description

**Example:**

.. code-block:: python

from langchain_community.document_loaders import RSSFeedLoader

loader = RSSFeedLoader(
    urls=["<url-1>", "<url-2>"],
)
docs = loader.load()

The loader uses feedparser to parse RSS feeds.  The feedparser library is not installed by default so you should
install it if using this loader:
https://pythonhosted.org/feedparser/

If you use OPML, you should also install listparser:
https://pythonhosted.org/listparser/

Finally, newspaper is used to process each article:
https://newspaper.readthedocs.io/en/latest/

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `urls` | `Optional[Sequence[str]]` | No | URLs for RSS feeds to load. Each articles in the feed is loaded into its own document. (default: `None`) |
| `opml` | `Optional[str]` | No | OPML file to load feed urls from. Only one of urls or opml should be provided.  The value (default: `None`) |
| `continue_on_failure` | `bool` | No | If True, continue loading documents even if loading fails for a particular URL. (default: `True`) |
| `show_progress_bar` | `bool` | No | If True, use tqdm to show a loading progress bar. Requires tqdm to be installed, ``pip install tqdm``. (default: `False`) |
| `**newsloader_kwargs` | `Any` | No | Any additional named arguments to pass to NewsURLLoader. (default: `{}`) |

## Extends

- `BaseLoader`

## Constructors

```python
__init__(
    self,
    urls: Optional[Sequence[str]] = None,
    opml: Optional[str] = None,
    continue_on_failure: bool = True,
    show_progress_bar: bool = False,
    **newsloader_kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `urls` | `Optional[Sequence[str]]` |
| `opml` | `Optional[str]` |
| `continue_on_failure` | `bool` |
| `show_progress_bar` | `bool` |


## Properties

- `urls`
- `opml`
- `continue_on_failure`
- `show_progress_bar`
- `newsloader_kwargs`

## Methods

- [`load()`](https://reference.langchain.com/python/langchain-community/document_loaders/rss/RSSFeedLoader/load)
- [`lazy_load()`](https://reference.langchain.com/python/langchain-community/document_loaders/rss/RSSFeedLoader/lazy_load)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/document_loaders/rss.py#L12)