RSS
This feeder creates a stream starting from a feed RSS
, ATOM
or JSON
.
It is based on gofeed so you can refer to it for more info and supported formats.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
url | STRING | empty | URL of the feed |
freq | DURATION | 60s | how often the feed should be parsed |
start_from_beginning | BOOL | “false” | if “true” it starts to parse the feed from the beginning (the first time it will ignore the pubdate field of the feed) |
ignore_pubdate | BOOL | “false” | if “true” it ignores the pubdate and it returns all the feed content every time |
... | <rss: url="https://example.rss", freq="5s", start_from_beginning="false"> | ...
Output
Text
The main
field of the Message will contain the item.Title
string of the gofeed.Item
struct.
Extra
Name | Description |
---|---|
feed_title | title of the feed (feed.Title) |
feed_feedlink | feed url (feed.FeedLink) |
feed_updated | time of the last update (feed.Updated) |
feed_published | date of publication (feed.Published) |
feed_author | author in the form name <e-mail> (feed.Author.Name) |
feed_language | language of the feed (feed.Language) |
feed_copyright | copyright (feed.Copyright) |
feed_generator | generator used to create the feed (feed.Generator) |
In addition to the feed tags, the Extra will also contain the item’s fields. Since they could be different from feed to feed and it is possible to configure custom tag, you will find all them in the extra with their name.
Not all the Extra field could be filled. If the relative tag is not present on the feed it will be empty.
Examples
Soon…