rss.readFeed
たとえば、rss.readFeed ("http://scripting.com/rss.xml")は以下のようなオブジェクトが返ってくる。
code:sample.js
{
"title": "Scripting News",
"description": "It's even worse than it appears.",
"pubDate": "2021-11-17T18:40:46.000Z",
"language": "en-us",
"copyright": "copyright 1994-2021 Dave Winer.",
"generator": "oldSchool v0.7.12",
"cloud": {
"domain": "rpc.rsscloud.io",
"port": "5337",
"path": "/pleaseNotify",
"registerprocedure": "",
"protocol": "http-post",
"type": "rsscloud"
},
"items": [
{
"description": "New verb coming soon in Drummer, rss.readFeed. It takes the URL of an RSS feed, and returns a JavaScript object containg the information in the feed in an easy-to-use format (for programmers of course).",
"pubDate": "2021-11-19T18:30:39.000Z",
},
{
"description": "I missed the renewal notices for the Radio3.io domain, so it's out now, but I expect it'll be back shortly. Sorry! :-(",
"pubDate": "2021-11-19T17:38:44.000Z",
},
{
"description": "A discussion about how Markdown should be processed for Drummer blogs. Basically, what role if any should indentation play, and how many newlines to generate for each line in the outline. My current position -- indentation should play no role in the Markdown we generate from the outline, it should be ignored. And we should generate one newline for every line in the outline. Note this is not how Drummer works now.",
"pubDate": "2021-11-19T15:16:46.000Z",
},
{
"description": "I did a refresh on the ArtShow collection yesterday, a few hundred more classic paintings. Free to download, or use via web.",
"pubDate": "2021-11-18T12:14:39.000Z",
},
}
ref.