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
(ns scraper | |
(:use [clojure.contrib.duck-streams :only [spit]] | |
[clojure.contrib.seq-utils :only [partition-all]]) | |
(:import (java.net URL) | |
(java.io BufferedReader InputStreamReader FileReader))) | |
(def num-threads 20) | |
(defn scrape [url] | |
(try |