Bundle RSS feed reader. RSSReader fetches and parses RSS 2.0 feeds from a URL or string; RSSChannel and RSSPost expose title, description, link, and publication date. Compile with -lib rss.
RSSPost
RSS post
Operations
GetDate #
Gets the date string
method : public : GetDate() ~ StringReturn
| Type | Description |
|---|---|
| String | date string |
Example
reader := RSSReader->New("https://feeds.bbci.co.uk/news/rss.xml");
if(reader->IsOk()) {
posts := reader->GetPosts();
posts->Get(0)->GetDate()->PrintLine();
};GetDescription #
Gets the description
method : public : GetDescription() ~ StringReturn
| Type | Description |
|---|---|
| String | description |
Example
reader := RSSReader->New("https://feeds.bbci.co.uk/news/rss.xml");
if(reader->IsOk()) {
posts := reader->GetPosts();
posts->Get(0)->GetDescription()->PrintLine();
};