From owner-freebsd-questions@FreeBSD.ORG Thu Feb 9 20:13:52 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23A0616A428 for ; Thu, 9 Feb 2006 20:13:52 +0000 (GMT) (envelope-from jorn@wcborstel.nl) Received: from post-24.mail.nl.demon.net (post-24.mail.nl.demon.net [194.159.73.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB6D743D55 for ; Thu, 9 Feb 2006 20:13:51 +0000 (GMT) (envelope-from jorn@wcborstel.nl) Received: from wcborstel.demon.nl ([83.160.142.57]:1806 helo=[192.168.1.6]) by post-24.mail.nl.demon.net with esmtp (Exim 4.51) id 1F7IAo-000DDh-7j; Thu, 09 Feb 2006 20:13:50 +0000 Message-ID: <43EBA27D.9080400@wcborstel.nl> Date: Thu, 09 Feb 2006 21:13:49 +0100 From: Jorn Argelo User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kristian Vaaf References: <7.0.1.0.2.20060208202634.0211cea8@broadpark.no> In-Reply-To: <7.0.1.0.2.20060208202634.0211cea8@broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: A script for poets X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 20:13:52 -0000 Kristian Vaaf wrote: > > Hello! > > Again with my script requests, this time I'm wondering if anybody > has ever felt like writing a shell script that makes it easy to write > rhymes, > poems or just make up funny lines. > > http://www.rhymer.com is a great place, but unfortunately it requires > a browser. > > Or maybe this is a feature that extends beyond the purpose of shell > scripting, > and that maybe for such I should start looking into languages like Ruby? > > Hoping for generous expert advise. > > Thank you, peasants and poets :) > > Vaaf (wuff) > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Hmm, maybe you could use LWP (libwww-perl) to execute search queries to a site like rhyme.poetry.com and then get the results in an array and do whatever you want with the output. Basically LWP is capable of printing out the raw HTML format, so a little bit of handy dandy perl functions would help a lot. LWP is a very nice perl module, and I suggest you look into that if you want to use an existing site to get your rhymes out. Cheers, Jorn