Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add example for getting specific attribute

  • Loading branch information...
commit 7d49ac644d27d5047aa9e8c99cb2ea9efef607f0 1 parent 6453c30
Josh Teneycke authored March 31, 2013

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  README.markdown
4  README.markdown
Source Rendered
@@ -23,6 +23,10 @@ or
23 23
 	;; css
24 24
 	(def footer-feedback-text
25 25
 	  (map node-text (css page "div.footer-beta-feedback")))
  26
+	  
  27
+	;; get specific attributes
  28
+	(def a-attr-href
  29
+           (map #(select-keys % [:href]) (map attr-map (css page "div.link a"))))  
26 30
 ```
27 31
 ## license
28 32
 

0 notes on commit 7d49ac6

Please sign in to comment.
Something went wrong with that request. Please try again.