Url-normalizer is a project mainly written in Clojure, it's free.
a clojure library for normalizing urls with configurable aggressiveness
Normalize URLs. See the tests.
(ns my.namespace
(:use [url-normalizer.core))
(canonicalize-url "http://www.example.com")
leiningen
[url-normalizer "0.0.5"]
maven
<dependency>
<groupId>url-normalizer</groupId>
<artifactId>url-normalizer</artifactId>
<version>0.0.4</version>
</dependency>
Tests taken from Sam Ruby's version of urlnorm.py
urlnorm.py
Copyright (C) 2010
Distributed under the Eclipse Public License, the same as Clojure.