help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading Atom feeds with Gnus


From: Sharon Kimble
Subject: Re: Reading Atom feeds with Gnus
Date: Wed, 21 Oct 2020 13:19:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (gnu/linux)

haj@posteo.de (Harald Jörg) writes:

> Hello all,
>
> I'm moving (back) to Gnus as my mail+news+feed client, after having
> tried another program for some time without being really happy with it.
> During that time, some of the feeds I like to read moved from RSS to
> Atom-only - and I haven't figured out how to read those with Gnus.
>
> Right now, I'm using news.gwene.org to convert the Atom feeds to NNTP
> which works quite fine.  But this seems to be an unneccessary detour, so
> I'd prefer some "direct" approach.
>
> So... is there a recommended way to read Atom feeds with Gnus?

Hi Haj.

I do it everyday and it seems to be working out okay. I'll share with
you what I use.
    
And this comes from the gnu section of my config.

--8<---------------cut here---------------start------------->8---
  (require 'mm-url)
  (defadvice mm-url-insert (after DE-convert-atom-to-rss () )
    "Converts atom to RSS by calling xsltproc."
    (when (re-search-forward "xmlns=\"http://www.w3.org/.*/Atom\"";
                             nil t)
      (goto-char (point-min))
      (message "Converting Atom to RSS... ")
      (call-process-region (point-min) (point-max)
                           "xsltproc"
                           t t nil
                           (expand-file-name 
"/home/boudiccas/.emacs.d/atom2rss.xsl") "-")
      (goto-char (point-min))
      (message "Converting Atom to RSS... done")))
--8<---------------cut here---------------end--------------->8---
      
I hope these help you. I've had the atom2rss file for some time (its
dated to 2018-06-25) and I can't remember where I got it from, so if
anyone knows I'd love to know.

Thanks
  Sharon.  

Attachment: atom2rss.xsl
Description: atom2rss

-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 10.6, fluxbox 1.3.7, emacs 27.1.50, org 9.4

reply via email to

[Prev in Thread] Current Thread [Next in Thread]