nhoizey / github-action-feed-to-mastodon

A GitHub Action to create toots on Mastodon from a JSON Feed
MIT License
23 stars 3 forks source link

Support other feed formats: RSS, Atom #16

Open nhoizey opened 1 year ago

nhoizey commented 1 year ago

https://github.com/rknightuk/echo uses https://github.com/rbren/rss-parser for parsing RSS/Atom feeds.

nhoizey commented 1 year ago

Other option: https://github.com/extractus/feed-extractor

cdransf commented 1 year ago

@nhoizey extractus/feed-extractor is a great option — I'm using it to parse several feeds already and the output is consistent and extensible.

cdransf commented 1 year ago

The easiest path may be to simply require the user to pass a param such as feedType with the other values set in the workflow file, defaulting feedType to the JSON parse path given that that's currently the path supported at the moment.

nhoizey commented 1 year ago

@cdransf with feed-extractor, I guess it would not be needed at all.

cdransf commented 1 year ago

@cdransf with feed-extractor, I guess it would not be needed at all.

Good call out! I'd only used it for RSS feeds so far, but it would be easy enough to replace the fetch call with it

lwojcik commented 1 year ago

What's the status of this?

I'm willing to discuss and eventually contribute the feature - I'm just making sure I don't duplicate ongoing effort (though I can't see any except v2 beta tags in the Releases section).