Page 1 of 1

Is there any Library for Feed-Parsing

Posted: Mon Nov 10, 2008 7:36 am
by schoppenhauer
Hello.

I am looking for some Library to parse RSS- and Atom-Feeds. The only good thing I've found yet was some Python-Library named "feedparser" (feedparser.org), which is good, and which I could maybe include to Common Lisp, but I actually do not want to combine Python and Common Lisp (and do not want to learn python). There are also some Libraries for Java, but these seem not to be very handy.
Is there anything like this for Common Lisp, maybe written natively in Common Lisp?

Re: Is there any Library for Feed-Parsing

Posted: Mon Nov 10, 2008 9:00 am
by kroger
I'm sure there is something out there, but why not use one of the many xml parsers for lisp?

http://wiki.alu.org/XML_Parser_Libraries

you can use drakma to download the feeds.

pedro

Re: Is there any Library for Feed-Parsing

Posted: Mon Nov 10, 2008 11:15 am
by schoppenhauer
As far as I have read the Standards are very complex even though you can parse XML. I.e. there are many Elements to know, etc.

Re: Is there any Library for Feed-Parsing

Posted: Mon Nov 10, 2008 1:03 pm
by dmitry_vk
There is a cl-rss package in gentoo and debian.

Re: Is there any Library for Feed-Parsing

Posted: Mon Nov 10, 2008 2:02 pm
by schoppenhauer
Thanks. I will try it, but it needs aserve and ... as far as debian sais, it only supports RSS .9x

Re: Is there any Library for Feed-Parsing

Posted: Tue Nov 11, 2008 7:50 am
by xach
For Planet Lisp, I wrote a short Python program that loads feeds with the Universal Feed Parser and writes out files of sexps representing their contents. Then a Lisp program puts the HTML pages together.

Re: Is there any Library for Feed-Parsing

Posted: Tue Feb 03, 2009 12:21 pm
by ramarren
I am reviving quite an old thread, but perhaps this will become useful to someone:

Recently I became interested in the so called Semantic Web, which led me to Redland library, one component of which is Raptor parser, which claims to parse "RSS tag soup including all versions of RSS, Atom 1.0 and 0.3". Of course, it parses them into RDF, but it is really well suited for that sort of thing (although I suppose using Redland just for feed parsing is a bit of an overkill...).

I have written basic bindings for Redland: cffi-redland. I have no actual project to use it for, so I have no motivation to exhaustively test it at this time (especially string memory ownership worries me), but if someone was to use them I could probably work on those a bit more.