reallysimple icon indicating copy to clipboard operation
reallysimple copied to clipboard

Online version of reallysimple

Open scripting opened this issue 3 years ago • 3 comments

Scott Block suggested creating a server version of the reallysimple parser so you don't have to deploy a server every time you need to parse a feed. Good idea. Ultimately I'd like to have a version that runs directly in the browser, but since it depends on the feedparser package, which is only available for Node, at this time it's not practical.

So I will provide a server implementation that can be accessed over the web and of course provide the source so you can deploy it yourself, esp if operating the server consumes a lot of resources.

scripting avatar Jun 12 '22 13:06 scripting

I did a bit of digging and found that I already (basically) have a server version of reallysimple to support Drummer scripting and outlining.

  1. There's a verb rss.readFeed, it takes a URL and returns an object that contains the contents of the feed.

  2. If you have a node of type rss with an xmlUrl att that points to the feed, when you expand it you get the items from the feed.

Both of these call a server which is basically a wrapper for reallysimple.

I've updated the app so it makes good exampleware for the reallysimple package. I will have the source up in its own repo later today.

scripting avatar Jun 12 '22 14:06 scripting

Here's the server app.

https://github.com/scripting/feeder

You can use feeder.scripting.com if you're testing, but if you're deploying an app please run your own instance of this server.

Hope you like! :-)

scripting avatar Jun 12 '22 16:06 scripting

BTW, here's what a reallysimplified feed looks like.

http://feeder.scripting.com/returnjson?url=https://rss.nytimes.com/services/xml/rss/nyt/Theater.xml

scripting avatar Jun 13 '22 02:06 scripting