拉格波恩
Ragabone 已被弃用,取而代之的是 。
Ragabone 是一个 Clojure 库,用于将数据从 HTML 中提取到 edn 中。
例如,以下是从 Clojure subreddit 中抓取故事标题和链接的方法。
( require '[ragabone :as r])
; get the subreddit HTML
( def clojure-reddit ( slurp " http://www.reddit.com/r/clojure " ))
; extract the titles and urls from the HTML into a seq of Clojure maps.
( r/extract-from ( r/parse clojure-reddit) " .sitetable .thing "
[ :hea