我是 Clojure 的新手并且很活跃。
我有这样的html
<SPAN CLASS="f10"><A HREF="value1" title="...." TARGET="detail">....</A></SPAN></DIV><DIV CLASS="p5"><SPAN CLASS="f10"><A HREF="value2" title="..." TARGET="detail">.....</A></SPAN>
我试过这个
(html/select (fetch-url base-url ) [:span.f10 [:a (html/attr?:href)]]))
但它返回这个
({:tag :a,
:attrs
{:target "detail",
:title
"...",
:href
"value1"},
:content ("....")}
{:tag :a,
:attrs
{:target "detail",
:title
"....",
:href
"value2"},
:content
("....")}
我想要的只是输出中的 value1 和 value 2。我怎样才能完成它?