A novelty seeking crawler for HTML-based web applications.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
src
t
.gitignore
LICENSE
README.org
tanuki.asd

README.org

Tanuki

A novelty seeking crawler and link/wait reporting tool for HTML-based web applications.

It is based on the kappa web agent, which is itself based on the wonderful drakma.

Basic usage

Local requirements

Operation of Tanuki assumes access to a Postgres database, a la: Assuming good access for user:

createdb -h localhost -U tanuki_user -W tanuki
Access:
psql -W -U tanuki_user -h localhost tanuki

Starting

A session, starting from scratch.

(require :tanuki)
(in-package :tanuki)
(defparameter +t+ (make-tanuki-system :start-url "http://localhost/" :data-location "/tmp" :dbname "tanuki" :dbuser "XYZ" :dbpass "ABC" :dbhost "localhost"))
;; Build database from scratch, or wipe everything out.
(initialize-database +t+)
;; Start two agents.
(start-a-tanuki +t+ 'get-aset-weighed)
(report-general +t+)
(start-a-tanuki +t+ 'get-distant-aset-random)
(report-general +t+)
(stop-tanukis +t+)

Continuing

A session, continuing from last time.

(defparameter +t+ (make-tanuki-system :start-url "http://localhost/" :data-location "/tmp" :dbname "tanuki" :dbuser "XYZ" :dbpass "ABC" :dbhost "localhost"))
;; Start one agent.
(start-a-tanuki t1 'get-aset-random)
(stop-tanukis +t+)