   (->> (? doc xpath)
        (map element->map)))
 
-;; ***********************************************
-
 (defn run-query [url xpath]
   (??> (get-document url) xpath))
-
-;; Utility functions (WIP)
-;; ***********************************************
 
 (def first-selector (comp element->map first ?>))
 

    (merge base-element {:attributes attributes}))))
  ([element]
    (element->map element false)))

;; ***********************************************

(def as-clojure (partial mapv element->map))


(ns falkor.parser
  (:import [org.jsoup.Jsoup]
           [org.jsoup.nodes Document Element]))

(defn get-document
  "Retrieve a web page and cast it to a Document object.
