Liam Healy ([info]lhealy) wrote,
@ 2007-05-16 13:39:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:lisp

DRAKMA
Yesterday's blog mentioned trouble I'm having with cl-curl, my own package. A comment pointed me to DRAKMA, yet another Edi Weitz bequest to the lisp world. It is a native common lisp http client that handles the particular web site I am scraping data from, complete with password and cookies. It was very simple to rewrite my access functions to use DRAKMA, and it is able to retrieve all the data I wanted, no memory fault like cl-curl. So I will update the cl-curl project page to recommend DRAKMA.


It was a little unclear how to install DRAKMA; here is my condensed summary, on Debian:


  1. sudo aptitude install cl-chunga cl-puri cl-flexi-streams
  2. wget http://common-lisp.net/project/usocket/releases/usocket-0.3.2.tar.gz
  3. wget http://common-lisp.net/project/cl-plus-ssl/download/cl+ssl-2007-03-10.tar.gz
  4. wget http://weitz.de/files/drakma.tar.gz
  5. tar zxvf usocket-0.3.2.tar.gz
  6. tar zxvf cl+ssl-2007-03-10.tar.gz
  7. tar zxvf drakma.tar.gz
  8. clc-register-user-package usocket-0.3.2/usocket.asd
  9. clc-register-user-package cl+ssl-2007-03-10/cl+ssl.asd
  10. clc-register-user-package drakma-0.7.0/drakma.asd
  11. ,l drakma (in slime)



(Post a new comment)

seems to be asdf-installable...
(Anonymous)
2007-05-17 12:44 am UTC (link)
Hi,

Not sure which lisp implementation you're using, so perhaps asdf-install isn't an option for you, but the following seemed to work fine for me from sbcl:

(require :asdf)
(require :asdf-install)
(asdf-install:install :drakma)

modulo all the usual gpg-fiddling, of course. :)

(Reply to this) (Thread)

Re: seems to be asdf-installable...
[info]lhealy
2007-05-17 09:03 pm UTC (link)
SBCL on Debian. I've never had a smooth experience with asdf-install, mainly due to the unclear authentication process, so I avoid it. Debian packages on the other hand work well for me. Here's hoping DRAKMA and its dependencies get packaged soon.

(Reply to this) (Parent)


[info]longhairedbum
2007-07-24 06:22 pm UTC (link)
Hey, was wondering if you're still actively using LJ (and thus, whether I should add you :-P). You popped up on a google search for FringeDC -- I'm also a local coder, although I'm out of the city these days.

I don't work on anything remotely interesting outside of work, which is infuriating, but I am a definite fringe-programming-oriented dude. I've gone through about half of SICP while learning Scheme, and I'm currently trying to simultaneously attack Haskell and Oz.

Anyway. Thought I'd send a ping out! :-)

Cheers!

(Reply to this) (Thread)

Using LJ
[info]lhealy
2007-08-08 01:34 am UTC (link)
I do post occasionally; I haven't recently because I've been on vacation. One option for you is to monitor or subscribe to Planet Lisp http://planet.lisp.org/ which includes a lot of lisp users' blogs including mine.

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…