Database Reference
In-Depth Information
Getting ready
First, you have to add Enlive to the dependencies in the project.clj ile:
(defproject getting-data "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.6.0"]
[incanter "1.5.5"]
[enlive "1.1.5"]])
Next, use these packages in your REPL or script:
(require '[clojure.string :as string]
'[net.cgrand.enlive-html :as html]
'[incanter.core :as i])
(import [java.net URL])
Finally, identify the ile to scrape the data from. I've put up a ile at http://www.
ericrochester.com/clj-data-analysis/data/small-sample-table.html ,
which looks like this:
It's intentionally stripped down, and it makes use of tables for layout (hence the comment
about 1999).
 
Search WWH ::




Custom Search