Skip to content

kltm/tanuki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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+)

About

A novelty seeking crawler for HTML-based web applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published