I did the upgrade. seemed okay. I a resumed doing the enlive tutorial, and now when i :
user=> (load "tutorial/scrape1")
nil

nothing comes back.
type returns, nothing.
type (+ 1 1), and i get:
user=> 2
Odd.
From then on works as expected. Even when (load "scrape1")

------
tutorial : http://github.com/swannodette/enlive-tutorial/
source for scrape1:

(ns tutorial.scrape1
  (:require [net.cgrand.enlive-html :as html]))

(def *base-url* "http://news.ycombinator.com/";)

(defn fetch-url [url]
  (html/html-resource (java.net.URL. url)))

(defn hn-headlines []
  (map html/text (html/select (fetch-url *base-url*) [:td.title :a])))

(defn hn-points []
(map html/text (html/select (fetch-url *base-url*) [:td.subtext html/first-child])))
(defn print-headlines-and-points []
  (doseq [line (map #(str %1 " (" %2 ")") (hn-headlines) (hn-points))]
    (println line)))

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to