I was trying to get src attribute of img tag that has attribute itemprop set to some value.
Ok, I got the img tag and I'm able to extract inner text according to quesetion I asked here earlier today (in this case there is no text obviously), but I can't find anything that would help me return value of src attribute
(:require [net.cgrand.enlive-html :as e])
(defn getbyitemprop
"Extract node content from HTML"
[html value]
(e/select-nodes* (e/html-snippet html)
[(e/attr= :itemprop value) e/text-node]))
This gets me inner text of element by itemprop I pass as an argument