RSS Media Reader
AI-generatedOverview
This node fetches an RSS feed from a specified URL and extracts media content from the feed items with advanced filtering options. It is useful for scenarios where users want to aggregate and process media-rich RSS feeds, such as podcasts, video channels, or image galleries. For example, it can be used to fetch the latest podcast episodes with audio media or to gather video content from a news feed.
Use Case Examples
- Fetch an RSS feed of a podcast and filter to include only audio media items.
- Retrieve an RSS feed from a news website and extract all media types including images and videos.
- Limit the number of RSS items returned to the latest 10 entries with media content.
Properties
| Name | Meaning |
|---|---|
| RSS Feed URL | The URL of the RSS feed to fetch and process. |
| Custom Headers | Custom HTTP headers to send with the RSS feed request, such as User-Agent or Authorization headers. |
| Include Items Without Media | Whether to include RSS feed items that do not contain any media content in the output. |
| Max Items | Maximum number of RSS feed items to return. A value of 0 means all items are returned. |
| Media Types | Filter the RSS feed items by media type. Options include all media, images, videos, or audio. |
| Timeout (Seconds) | Timeout duration in seconds for the HTTP request to fetch the RSS feed. |
Output
JSON
title- Title of the RSS feed item.link- Link URL of the RSS feed item.pubDate- Publication date of the RSS feed item.description- Description or summary of the RSS feed item.author- Author or creator of the RSS feed item.category- Category or tag associated with the RSS feed item.guid- Unique identifier of the RSS feed item.mediaurls- Array of media URLs with details such as URL, type, medium, dimensions, and file size.type- Primary media type of the item (e.g., image, video, audio).thumbnail- Thumbnail URL for the media content if available.
sourceurl- The original RSS feed URL.title- Title of the RSS feed source.description- Description of the RSS feed source.
Dependencies
- An HTTP client library (axios) for fetching RSS feeds.
- An XML parser (fast-xml-parser) for parsing RSS feed XML data.
Troubleshooting
- Invalid RSS feed URL: The node validates the RSS feed URL format and throws an error if invalid. Ensure the URL is correct and accessible.
- Timeout errors: The node allows setting a request timeout. Increase the timeout if the feed server is slow to respond.
- Feed parsing errors: If the RSS feed XML is malformed or unexpected, parsing may fail. Verify the feed's XML structure.
- No media items returned: Check the media type filters and the 'Include Items Without Media' option to ensure desired items are included.
Links
- User-Agent Header - Information about the User-Agent HTTP header used in requests.
- RSS 2.0 Specification - Official specification for RSS feeds.
- fast-xml-parser - XML parser library used to parse RSS feed data.