🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #218

Re: Cambio en la web del DRAE

#218
From: Gonzalo Pérez de Olaguer Córdoba
Date: Mon, 07 Dec 2009 13:01
48 lines
2375 bytes
Hola gamo <gamo@telecable.es>
el Mon, 7 Dec 2009 12:41:24 +0000 escribiste:

> 
> Antes se podĂ­a acceder modo texto y en lĂ­nea de comandos
> al diccionario. Ahora han cambiado el submit por una flechita
> gráfica y eso hace inviable el método antiguo. ¿Alguien podría
> actualizar el script?
> 
> #!/usr/local/bin/perl
> 
> use warnings;
> 
> # Programa para acceder al diccionario de la RAE
> # Distribuido bajo los términos de la licencia GNU GPL
> 
> if (@ARGV){
>     if (-e $ARGV[0] && !-d $ARGV[0]){
> 	open IN, "<".$ARGV[0] or die "Cannot open: $!";
> 	chomp ($w = <IN>);
> 	close IN;
>     }else{
> 	$w = $ARGV[0];
>     }
> }else{
>     chomp($w = <STDIN>);
> }
> 
> if (defined $w && $w ne ""){
>     $a=`lynx -dump -nolist http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=2'\&'LEMA='$w'`;
>     print $a;
> }
> 
> __END__
>  
> Gracias y saludos 
> 

Parece que asĂ­ deberĂ­a funcionar:

`lynx -dump -nolist http://buscon.rae.es/draeI/SrvltConsulta?TIPO_BUS=3'\&'LEMA='$w'`

-- 
Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es> --- www.gpoc.es
PGP key 2861C704 --- F206 5671 6789 425D 111C  1302 214F 1934 2861 C704
Technical Details
Message-ID: <20091207140117.0c76e2a5@petres.salonet.snet>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!fu-berlin.de!news.eteo.mondragon.edu!eteo.mondragon.edu!hercules.escomposlinux.org!escomposlinux.org!not-for-mail
References: <alpine.LNX.2.00.0912071228540.14415@jvz.es>

Show Full Headers
Complete Article Headers
X-Google-Thread: 646d03421f,6940cc9820f4318a
X-Google-Attributes: gid646d03421f,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: SPANISH,UTF8
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!fu-berlin.de!news.eteo.mondragon.edu!eteo.mondragon.edu!hercules.escomposlinux.org!escomposlinux.org!not-for-mail
From: Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Cambio en la web del DRAE
Date: Mon, 7 Dec 2009 14:01:17 +0100
Organization: escomposlinux.org
Lines: 49
Message-ID: <20091207140117.0c76e2a5@petres.salonet.snet>
References: <alpine.LNX.2.00.0912071228540.14415@jvz.es>
NNTP-Posting-Host: 84.77.244.205
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: hercules.cohp1 1260190878 11542 84.77.244.205 (7 Dec 2009 13:01:18 GMT)
X-Complaints-To: newsmaster@news-17.escomposlinux.org
NNTP-Posting-Date: Mon, 7 Dec 2009 13:01:18 +0000 (UTC)
X-Newsreader: Claws Mail 3.5.0 (GTK+ 2.12.12; i486-pc-linux-gnu)