Is there any Library for Feed-Parsing
-
- Posts: 99
- Joined: Sat Jul 26, 2008 2:30 pm
- Location: Germany
- Contact:
Is there any Library for Feed-Parsing
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?
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
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
http://wiki.alu.org/XML_Parser_Libraries
you can use drakma to download the feeds.
pedro
-
- Posts: 99
- Joined: Sat Jul 26, 2008 2:30 pm
- Location: Germany
- Contact:
Re: Is there any Library for Feed-Parsing
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.
Sorry for my bad english.
Visit my blog http://blog.uxul.de/
Visit my blog http://blog.uxul.de/
Re: Is there any Library for Feed-Parsing
There is a cl-rss package in gentoo and debian.
-
- Posts: 99
- Joined: Sat Jul 26, 2008 2:30 pm
- Location: Germany
- Contact:
Re: Is there any Library for Feed-Parsing
Thanks. I will try it, but it needs aserve and ... as far as debian sais, it only supports RSS .9x
Sorry for my bad english.
Visit my blog http://blog.uxul.de/
Visit my blog http://blog.uxul.de/
Re: Is there any Library for Feed-Parsing
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
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.
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.