On Jun 23, Greg Hendershott wrote:
>
> (define (find-elements xexpr tag-name)
> ;; Given an x-expression return a list of all the elements starting
> with tag-name.
> (if (empty? xexpr)
> '()
> (let ([x (first xexpr)])
> (if (and (list? x) (not (empty? x)))
> (i
Cool! Thanks Greg!
- Joe
On 6/23/10, Greg Hendershott wrote:
> How I've gotten an x-expression using solely the Racket libs:
>
> (require net/url html xml)
>
> (define (get-xexpr-from-url url-string)
> (call/input-url (string->url url-string)
> get-pure-port
>
How I've gotten an x-expression using solely the Racket libs:
(require net/url html xml)
(define (get-xexpr-from-url url-string)
(call/input-url (string->url url-string)
get-pure-port
(lambda (p)
(xml->xexpr (car (read-html-as-xml p))
(This message and Insik Cho's response didn't seem to make it to the list.)
Neil Van Dyke wrote at 06/23/2010 03:06 PM:
Insik Cho wrote at 06/23/2010 02:01 PM:
I want to html source of an web page in racket.
What module and functions shall I use? and How?
Do you want Racket to get a Web page
I don't really understand the question, but perhaps this tutorial
covers what you want:
http://docs.racket-lang.org/continue/index.html
HTH,
N.
On Wed, Jun 23, 2010 at 7:01 PM, Insik Cho wrote:
> hi buddies,
> I want to html source of an web page in racket.
> What module and functions shall I
5 matches
Mail list logo