Switch branches/tags
Nothing to show
Clone or download
Latest commit f4b48c3 Apr 8, 2014
Failed to load latest commit information.
src/crouton parse-string added Feb 20, 2014
test/crouton/test parse-string added Feb 20, 2014
.gitignore Added pom.xml.asc to .gitignore Oct 13, 2012 Released 0.1.2 Apr 7, 2014
project.clj Released 0.1.2 Apr 7, 2014


Crouton is a HTML parsing library for Clojure that uses JSoup.


Add the following dependency to your project.clj file:

[crouton "0.1.2"]


Crouton provides a way of parsing a HTML file from a slurp-able source:

(require '[crouton.html :as html])

(html/parse "")

The parsed result is a DOM tree compatible with that produced by clojure.xml/parse.

If you have a string, rather than a file, URL or input-stream, you can use parse-string:

(html/parse-string "<html><head></head><body></body></html>")


Copyright © 2014 James Reeves

Distributed under the Eclipse Public License, the same as Clojure.