Created
January 27, 2014 06:34
-
-
Save danneu/8644022 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
(with-open [rdr (io/reader csv :encoding "UTF-16")] | |
(let [extract-url-hash (fn [line] | |
(let [[_ _ _ url & _] (str/split line #"\t")] | |
[(m/md5 url) url]))] | |
(->> (drop 1 (line-seq rdr)) | |
(map extract-url-hash) | |
(into {})))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment