Skip to content

Commit

Permalink
README updates and changes
Browse files Browse the repository at this point in the history
  • Loading branch information
devn committed Dec 26, 2013
1 parent 290f179 commit 745c23b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.markdown
Expand Up @@ -6,7 +6,7 @@


## getting started ## getting started


In your `project.clj`: `[yokogiri "1.5.5"]` In your `project.clj`: `[yokogiri "1.5.6"]`
```clojure ```clojure
(ns myproject.core (ns myproject.core
(:require [yokogiri.core :as yokogiri])) (:require [yokogiri.core :as yokogiri]))
Expand All @@ -23,7 +23,7 @@ or


;; with javascript enabled (look at the docstring for make-client ;; with javascript enabled (look at the docstring for make-client
;; for all of the available options.): ;; for all of the available options.):
(def client (make-client :javascript true)) (def client (make-client :javascript false))


;; Curious what options are set by default? ;; Curious what options are set by default?
(get-client-options (make-client)) (get-client-options (make-client))
Expand All @@ -46,10 +46,10 @@ or
(def footer-feedback-text (def footer-feedback-text
(map node-text (css page "div.footer-beta-feedback"))) (map node-text (css page "div.footer-beta-feedback")))


;; get specific attributes ;; Get specific attributes
(def a-attr-href (def a-attr-href
(map #(select-keys (attr-map %) [:href]) (map #(select-keys (attrs %) [:href])
(-> page css "div.link a"))) (-> page (css "div.link a"))))
``` ```


## license ## license
Expand Down

0 comments on commit 745c23b

Please sign in to comment.