Re: [racket-users] How to parse a html file into a sexpr?

2016-09-27 Thread Lin Lee
Yeah,it works.

But the format is a little different to the sexpr.

Thanks to your info.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] How to parse a html file into a sexpr?

2016-09-27 Thread Greg Trzeciak
This is more up to date version of the html-parsing package:
https://pkgn.racket-lang.org/package/html-parsing


On Tuesday, September 27, 2016 at 9:26:32 PM UTC+2, David K. Storrs wrote:
> Yep!
> 
> 
> The function is:  html->xexp and it's in (require  (planet 
> neil/html-parsing:3:0))

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] How to parse a html file into a sexpr?

2016-09-27 Thread David Storrs
Yep!

The function is:  html->xexp and it's in (require (planet
neil/html-parsing:3:0))

Note that xexp isn't *exactly* the same as sexp, but after substantial
messing with it myself I can guarantee that you will find it easier.

Dave


On Tue, Sep 27, 2016 at 11:50 AM, Lin Lee  wrote:

> I have a problem to parse a html file into a sexpr.
>
> I plan to use the 'HTML: Parsing Library' to do this.
> But it's a little complicate to parse a html file.
>
> So, I just want to know if there is a lib just parse a html file into a
> sexpr like the example in Tutorial.2:
> '(html
>  (head (title "My Blog"))
>  (body (h1 "Under construction")))
>
> Very appreciate.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] How to parse a html file into a sexpr?

2016-09-27 Thread Lin Lee
I have a problem to parse a html file into a sexpr.

I plan to use the 'HTML: Parsing Library' to do this.
But it's a little complicate to parse a html file.

So, I just want to know if there is a lib just parse a html file into a sexpr 
like the example in Tutorial.2:
'(html
 (head (title "My Blog"))
 (body (h1 "Under construction")))

Very appreciate.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.