From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA03985; Sat, 24 Aug 2002 15:39:37 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA03898 for ; Sat, 24 Aug 2002 15:39:36 +0200 (MET DST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7ODdZv00782 for ; Sat, 24 Aug 2002 15:39:36 +0200 (MET DST) Received: from [212.227.126.160] (helo=mrelayng0.kundenserver.de) by moutng3.kundenserver.de with esmtp (Exim 3.35 #2) id 17ib8X-0007AJ-00; Sat, 24 Aug 2002 15:39:33 +0200 Received: from [80.129.103.245] (helo=gate.gerd-stolpmann.de) by mrelayng0.kundenserver.de with asmtp (Exim 3.35 #2) id 17ib8X-0007CM-00; Sat, 24 Aug 2002 15:39:33 +0200 Received: from ice.gerd-stolpmann.de (ice.gerd-stolpmann.de [192.168.0.13]) by gate.gerd-stolpmann.de (Postfix) with ESMTP id EEDEFCCDD; Sat, 24 Aug 2002 15:39:31 +0200 (CEST) Received: from ice (localhost [127.0.0.1]) by ice.gerd-stolpmann.de (Postfix) with ESMTP id 10B47B0B8; Sat, 24 Aug 2002 15:39:31 +0200 (CEST) Date: Sat, 24 Aug 2002 15:39:30 +0200 From: Gerd Stolpmann To: Oliver Bandel Cc: Gerd Stolpmann , caml-list@inria.fr Subject: Re: [Caml-list] Ocaml-Weblib? Message-ID: <20020824133930.GC873@ice.gerd-stolpmann.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: ; from oliver@first.in-berlin.de on Sam, Aug 24, 2002 at 01:38:49 +0200 X-Mailer: Balsa 1.3.6 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Am 2002.08.24 01:38 schrieb(en) Oliver Bandel: > Hello Gerd, > > > On Thu, 22 Aug 2002, Gerd Stolpmann wrote: > > > > > Am 2002.08.21 20:49 schrieb(en) Oliver Bandel: > > > Hello, > > > > > > is there a Library for parsing/analysing Webpages? > > > > > > I want to write a tool, that helps me searching > > > on websites, and I don't want to rewrite such a library from scratch. > > > > > > Is there something for Ocaml, similar (or even better :)) > > > like Web-/CGI-Libs for Perl? > > > > You may have a look at ocamlnet, http://sourceforge.net/projects/ocamlnet. > > It includes an HTML parser, and CGI support. For HTTP operations, netclient > > http://www.ocaml-programming.de/programming/netclient.html may be helpful. > > Well I think it is designed to be used under bigger > programming environments (gtk is necessary). > > Isn't there a lib, which does not require such GUI-stuff like > gtk? > Isn't there a pure lib for handling the networkstuff? This is wrong. Neither ocamlnet nor netclient require gtk. (I really wonder where you have found this; there is no published piece of code from me that uses gtk.) Of course, these libraries have requirements, mostly because of coding economy. I try to avoid to program functions twice, or to distribute the same function twice under different names. (Nevertheless this happens, e.g. there are parsers for mail (RFC822) messages in both ocamlnet and netclient.) You are right that "bigger programming environments" profit more from this approach, because code is shared. It makes it also simpler for me, the author, because I need to maintain smaller amounts of code. In particular, ocamlnet needs PCRE, and netclient needs (besides ocamlnet) equeue, and optionally xstr (for multi-threaded apps). A quite short dependency chain, IMHO. It might be possible that netclient and equeue are integrated into ocamlnet in the future, but a lot of consolidation is needed first. Gerd ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners