Is there any Library for Feed-Parsing

Discussion of Common Lisp

Is there any Library for Feed-Parsing

Postby schoppenhauer » Mon Nov 10, 2008 7:36 am

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?
schoppenhauer
 
Posts: 99
Joined: Sat Jul 26, 2008 2:30 pm
Location: Germany

Re: Is there any Library for Feed-Parsing

Postby kroger » Mon Nov 10, 2008 9:00 am

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
kroger
 
Posts: 12
Joined: Mon Jul 28, 2008 2:38 am

Re: Is there any Library for Feed-Parsing

Postby schoppenhauer » Mon Nov 10, 2008 11:15 am

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/
schoppenhauer
 
Posts: 99
Joined: Sat Jul 26, 2008 2:30 pm
Location: Germany

Re: Is there any Library for Feed-Parsing

Postby dmitry_vk » Mon Nov 10, 2008 1:03 pm

There is a cl-rss package in gentoo and debian.
dmitry_vk
 
Posts: 96
Joined: Sat Jun 28, 2008 8:01 am
Location: Russia, Kazan

Re: Is there any Library for Feed-Parsing

Postby schoppenhauer » Mon Nov 10, 2008 2:02 pm

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/
schoppenhauer
 
Posts: 99
Joined: Sat Jul 26, 2008 2:30 pm
Location: Germany

Re: Is there any Library for Feed-Parsing

Postby xach » Tue Nov 11, 2008 7:50 am

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.
xach
 
Posts: 6
Joined: Tue Nov 11, 2008 7:48 am

Re: Is there any Library for Feed-Parsing

Postby Ramarren » Tue Feb 03, 2009 12:21 pm

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.
Ramarren
 
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland


Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 2 guests