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
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
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
3 matches
Mail list logo