This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

CL equivalent of Ruby Mechanize?

6 posts · 6568 views

Does anybody know of a CL equivalent of Ruby's Mechanize library (http://mechanize.rubyforge.org/mechanize/). It's designed to provide a nice way to interact easily with web sites over HTTP. Note that it's far more than a simple HTTP client and correctly handles cookies, authentication, redirects, etc.
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/

Re: CL equivalent of Ruby Mechanize?

http://www.cliki.net/lisp-cgi-utils
This look useful?
I'm sure you could extend it, maybe work with cl-who code... but that's more for generation as I recall...

Re: CL equivalent of Ruby Mechanize?

TheGZeus wrote:http://www.cliki.net/lisp-cgi-utils
This look useful?
I'm sure you could extend it, maybe work with cl-who code... but that's more for generation as I recall...
I think that's the server-side stuff. I want the client side. Essentially, I'm looking for a CL library equivalent of wget or curl.
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/

Re: CL equivalent of Ruby Mechanize?

Well, I am completely unfamiliar with mechanize, but your comment about an http client that stores cookies and what not sounds a bit like Drakma. And Drakma is kind of like the utility curl, for which there are cffi bindings available.

Maybe this is the right track?

Zach

Re: CL equivalent of Ruby Mechanize?

smithzv wrote:Well, I am completely unfamiliar with mechanize, but your comment about an http client that stores cookies and what not sounds a bit like Drakma. And Drakma is kind of like the utility curl, for which there are cffi bindings available.

Maybe this is the right track?

Zach
I'll check out Drakma. I knew of it, but I had thought previously that it was a bit more simplistic than what I was looking for. In other words, there's a big difference between something that is capable of performing a simple HTTP transaction and something that starts to act more like a complete browser without the UI. I had previously filed Drakma into the category of just being a simple client, but I might be wrong. Edi usually produces great libraries, so I'll go check it out.
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/

Re: CL equivalent of Ruby Mechanize?

Yea, that looks like it will work. I should have known that Edi would only put out something full-featured. Don't know what I was thinking.
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/