Skip to content

Instantly share code, notes, and snippets.

@BDF
Created November 3, 2015 20:17
Show Gist options
  • Save BDF/102891e882539e2a0e63 to your computer and use it in GitHub Desktop.
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" )
(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