Re: [racket] Just how to get and print a web page

2011-10-29 Thread Neil Van Dyke
Sam Tobin-Hochstadt wrote at 10/29/2011 07:15 AM: #lang racket (require net/url) (define (get url) (get-impure-port (string->url url))) (port->lines (get "http://www.google.com";)) Also, if you want to process the HTML of that page, you might wish to get the HTML into an SXML/xexp format li

Re: [racket] Just how to get and print a web page

2011-10-29 Thread Sam Tobin-Hochstadt
On Sat, Oct 29, 2011 at 4:27 AM, MingQian Zhang wrote: > Hi all: > I am a rookie to racket who used to write some ruby scripts. > Now I meet some problem about how to download a URL and print it or deal the > result as a String. > I write like this: > #lang racket > (require net/url) > (define (ge

[racket] Just how to get and print a web page

2011-10-29 Thread MingQian Zhang
Hi all: I am a rookie to racket who used to write some ruby scripts. Now I meet some problem about how to download a URL and print it or deal the result as a String. I write like this: #lang racket (require net/url) (define (get url) (get-impure-port (string->url url))) Then run: > (read (g