Created
September 10, 2009 21:13
-
-
Save hiredman/184831 to your computer and use it in GitHub Desktop.
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 search-tickets-for [term] | |
(-> term search zip-soup first :content | |
((partial filter #(= :body (:tag %)))) first :content | |
((partial filter #(= :div (:tag %)))) | |
((partial filter #(= "content" ((comp :id :attrs) %)))) | |
((partial map :content)) first ((partial map :content)) | |
((partial map first)) ((partial filter #(= :ul (:tag %)))) first :content | |
((partial map :content)) | |
((partial map first)) | |
((partial mapcat :content)) | |
((partial filter #(= :h4 (:tag %)))) | |
((partial mapcat :content)) | |
((partial filter #(= :a (:tag %)))) | |
((partial mapcat :content)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clojure/clojure@64323d8