Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online version of reallysimple #1

Open
scripting opened this issue Jun 12, 2022 · 3 comments
Open

Online version of reallysimple #1

scripting opened this issue Jun 12, 2022 · 3 comments

Comments

@scripting
Copy link
Owner

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
Copy link
Owner Author

scripting commented Jun 12, 2022

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
Copy link
Owner Author

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant