On 06/21/2015 06:49 PM, Neil Van Dyke wrote: > > "http://www.neilvandyke.org/racket-html-parsing/" parses HTML to > SXML. From there you can use SXPath and `sxml-match` to extract the > info you want. >
Excellent! For the record, this is how I "selected" an 'li' element with a given 'id': <code> (define html-doc (html->xexp html-as-string)) ((txpath "//li[@id='SOME-ID']") html-doc) </code> Thank you. -- Bahman Movaqar http://BahmanM.com - https://twitter.com/bahman__m https://github.com/bahmanm - https://gist.github.com/bahmanm PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com) -- 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.
signature.asc
Description: OpenPGP digital signature