Last active
May 13, 2016 17:18
-
-
Save danielbraun/1252d12bf7e5e9ea481662c8990d5cd6 to your computer and use it in GitHub Desktop.
two-column-table->map
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- two-column-table->map [table-dom] | |
(->> (enlive/select table-dom [:td]) | |
(map (comp string/trim enlive/text)) | |
(apply hash-map) | |
(map #(update % 0 string/replace ":" "")) | |
(into {}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment