skeeto / elfeed

An Emacs web feeds client
The Unlicense
1.52k stars 118 forks source link

Execute command line? #431

Open ghost opened 3 years ago

ghost commented 3 years ago

One of the features I liked about liferea is that I can add a feed based on the output of a command by setting the feed address as something like |/usr/bin/tweeper -e https://twitter.com/gloriousabsence (my Twitter feed for shameless plugging). Is there a similar functionality in elfeed?

bhepple commented 2 years ago

I'd also like this. My use-case is web pages that lack an RSS feed such as Associated Press. I use ratt to scrape those pages to produce an RSS feed eg

ratt auto https://apnews.com/hub/world-news > ~/tmp/apnews

Presently I set an item in elfeed-feeds like this:

("file:///home/bhepple/tmp/apnews" news apnews)

I was pleasantly surprised that a 'file:///...' URL worked just fine!! But it would be nice not to have to remember to run the command line before running elfeed.

BTW ratt = "RSS all the things!"

BTW thanks for elfeed, been using it for some months now and loving it.

ghost commented 2 years ago

liferea (feed reader for Gnome) has a feature where you can use a command line in place of a URL for reading a program-generated feed, which would look like this:

!/usr/bin/ratt auto "https://apnews.com/hub/world-news”

liferea then interprets stdout as a feed.

May be a useful alternative.

bhepple commented 2 years ago

Thanks for the info - I have tried liferea and it's fine and all. But I prefer elfeed even with needing to use a temporary file for one feed.