Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

RE: RE: webster client

by gregorovius (Friar)
on May 17, 2000 at 19:25 UTC ( #12105=note: print w/replies, xml ) Need Help??

in reply to RE: webster client
in thread webster client

Sure! I have a Spanish-English version already. If you point me to an on-line english-german dictionary I'll make it work with it.(or you may do it yourself and post the new version back)

Replies are listed 'Best First'.
RE: webster client
by Anonymous Monk on May 18, 2000 at 18:53 UTC
    A german-english dictionary is avaible at
RE: RE: RE: webster client
by Melvin (Beadle) on May 22, 2000 at 15:37 UTC
    This is the german dictionary I prefer. Providing as much information on the word as possible would be the most useful, such as article, the plural form, etc etc. I'll take a look at it myself and post my results, but I'd love to see your spanish port.
      This is the spanish-english version. It's not currently working because they just changed the user interface to the site. Note that the only significant difference to my webster client is that this one uses the POST protocol. Feel free to contact me if you run into any problems.
      #!/usr/bin/perl -w use HTML::TreeBuilder; use HTML::FormatText; $|=1; # Asynchronous I/O. use LWP::UserAgent; my $ua = new LWP::UserAgent; my $ua->agent("Diccionario"); #$ua->proxy([ 'http' ], ''); # # Create a new request. # my $req = new HTTP::Request POST => " +ESPResult.html"; $req->content_type('application/x-www-form-urlencoded'); $req->content("TipoBusqueda=Emp&Entrada=$ARGV[0]&MaxFilas=10"); # # Pass Request to the user agent and get a response back. # my $res = $ua->request($req); # # Print outcome of the response. # if(! $res->is_success) { print "Failure to connect to server: " . $res->message; } else { $html = $res->content; $p = HTML::TreeBuilder->new; $p->parse($html); $formatter = HTML::FormatText->new(leftmargin => 0, rightmargin => 6 +0); $result = $formatter->format($p); @parrafos = split /^\s+/m, $result; for($x=1; !($parrafos[$x] =~ /^\[FORM/) and $x < 10; $x++) { print $parrafos[$x]."\n" if !($parrafos[$x] =~ /^----/); } }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://12105]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2016-10-22 07:58 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (293 votes). Check out past polls.