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 gcount.core | |
"generates charts out of the result from google search term(s)." | |
(:use (incanter core charts)) | |
(:require [clj-http.client :as http-client])) | |
(def *search-provider* "http://www.google.com/search?hl=en&q=") | |
(def *search-pattern* #"About.*?([\d,]+).*?") | |
(defn search-for-term [term] | |
(let [encoded-term (.replaceAll (apply str term) " " "+") |