Skip to content

Instantly share code, notes, and snippets.

@grav
Created September 27, 2013 11:44
Show Gist options
  • Save grav/6727373 to your computer and use it in GitHub Desktop.
Save grav/6727373 to your computer and use it in GitHub Desktop.
(require '[clojure.java.io :as io])
(defn save-url [url filename]
(let [in (io/input-stream (io/as-url url))
out (io/output-stream (io/as-file filename))]
(io/copy in out)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment