Created
August 13, 2022 14:27
-
-
Save lov3catch/52b29d6fc164fb92468baedd670de261 to your computer and use it in GitHub Desktop.
Racket (Parse html)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket/base | |
(require html-parsing | |
net/url | |
sxml/sxpath) | |
(define bashorg (html->xexp | |
(get-pure-port (string->url "http://bashorg.org")))) | |
((sxpath "//*[@id='quotes']/div[1]/div[2]") bashorg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment