CL equivalent of Ruby Mechanize?

Discussion of Common Lisp

CL equivalent of Ruby Mechanize?

Postby findinglisp » Mon Jul 28, 2008 12:49 pm

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/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: CL equivalent of Ruby Mechanize?

Postby TheGZeus » Mon Jul 28, 2008 2:44 pm

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...
TheGZeus
 
Posts: 79
Joined: Mon Jun 30, 2008 10:46 am

Re: CL equivalent of Ruby Mechanize?

Postby findinglisp » Mon Jul 28, 2008 3:40 pm

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/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: CL equivalent of Ruby Mechanize?

Postby smithzv » Mon Jul 28, 2008 3:59 pm

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
smithzv
 
Posts: 94
Joined: Wed Jul 23, 2008 11:36 am

Re: CL equivalent of Ruby Mechanize?

Postby findinglisp » Mon Jul 28, 2008 7:34 pm

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/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: CL equivalent of Ruby Mechanize?

Postby findinglisp » Mon Jul 28, 2008 8:05 pm

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/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX


Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 4 guests