[18903] in s-news-athena
Re: [S] Reading an ASCII file from a web site
daemon@ATHENA.MIT.EDU (Baz)
Tue Aug 10 07:49:38 1999
Message-Id: <37B010C7.25BEBE17@lancs.ac.uk>
Date: Tue, 10 Aug 1999 12:45:11 +0100
From: Baz <B.Rowlingson@lancaster.ac.uk>
Mime-Version: 1.0
To: Spyros Vrontos <svrontos@stat-athens.stats.aueb.gr>
Cc: s-news@wubios.wustl.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Spyros Vrontos wrote:
>
> Hi!
> Many thanks to Bill Dunlap for suggesting the following solution.
>
> >lrlGet <- function(url)
> >{
> > unix(paste("/sw/local/perl5/bin/GET", url))
> >}
> >
I've just worked another solution that uses slynx that is supplied
with Splus5:
urlget <- function(url)
{
unix(paste("$SHOME/cmd/slynx -dump -cfg $SHOME/cmd/lynx.cfg", url))
}
Note that this doesn't get the HTML like Bill's GET solution, but
returns
a plain text formatted version of the page. It also has the advantage of
not
needing perl, but you should get perl anyway! Use whichever solution
you
prefer, but choose wisely...
Barry Rowlingson
Computing Officer
Maths and Stats
Lancaster University
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news