Re: RSS feed
Posted: Fri Jun 19, 2009 5:06 am
The easy way is to use DRAKMA.Harleqin wrote: - Reading a page into a string should be possible much easier.
Code: Select all
(drakma:http-request uri)
Discuss and learn Lisp programming of all dialects. NOTICE: Site locked. No new users or posts.
http://www.lispforum.com/
The easy way is to use DRAKMA.Harleqin wrote: - Reading a page into a string should be possible much easier.
Code: Select all
(drakma:http-request uri)
This should work, but I can't test it currently:schoppenhauer wrote:Try itHarleqin wrote:Regarding the HTML parsing: I haven't done this before, but I thought of Closure HTML.(Its possible, but annoying)
Code: Select all
(defun get-entries (path)
(let ((page (chtml:parse (trivial-http:http-get path) (stp:make-builder)))
(entries ()))
(stp:do-recursively (el page)
(when (and (typep el 'stp:element)
(equal (stp:local-name el) "a")
(equal (stp:attribute-value el "class") "topictitle"))
(push (cons (stp:attribute-value el "href")
(stp:string-value el))
entries)))))
Yes, absolutely.schoppenhauer wrote:Maybe another interesting question would be whether the thing it basically does is usefull to provide an RSS-Feed for this Forum (no matter how exactly it is implemented now).
Yes, agreed. I would thought that having RSS embedded into every web application these days would be the default, but alas it is not.Jasper wrote:Just +1 on wanting RSS. Tbh that this forum system doesn't support it defaultly seems little pathetic... I made an(admittedly untested) rss writer for 'my' project, and it isn't that hard..
Not to diss anyone except for phpBB board :p