A small library for extracting query strings from search engine referrers
Clojure
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/query_extractor
test/query_extractor/test
.gitignore
.travis.yml
README.md
project.clj

README.md

query-extractor

Build Status

A very small library for extracting a search query string given a referrer address. It should work for Yahoo, Google, and Bing searches. If it doesn't please let me know so the library can improve.

Usage

for leiningen:

[query-extractor "0.0.9"]

An example REPL session:

=> (use 'query-extractor.core)
=> (extract "http://www.google.com/search?q=just+an+example")
=>"just an example"

License

Copyright (C) 2011 Soren Macbeth

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