Created
November 3, 2015 20:17
-
-
Save BDF/102891e882539e2a0e63 to your computer and use it in GitHub Desktop.
Clojure: Read an HTML resource and parse down to the text nodes with the following path ( /body/form/div[@id="qautil-display" )
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
(defn parse [src-to-parse] | |
(-> src-to-parse | |
(html/html-resource ) | |
(html/select-nodes* #{[:body :form :div (html/attr= :id "qautil-display" ) html/text-node ]}) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment