Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

CL-TWIT-DB : A database store for tweets


The api calls that this component relies on may have changed. In addition, this component relies on the elepehant package and Berkley DB.

Berkely DB needs to be installed before you can even attempt to use this.

I have not reviewed this component in detail. My intention is to make this work with elepehant as well as mongodb through cl-mongo.

Fons Haffmans 12/05/2010

Twitter Database

Simple elephant-based database for users, tweet and messages. When the db is open, it automatically stores objects that are retrieved via the API and provides a series of simple accessors that can be easily expanded.

Open and close: (open-twitter-db &optional elephant-spec) (close-twitter-db)

Users (find-twitter-user &key id screen-name name) (map-twitter-users fn)

Tweets (get-tweet id) (map-tweets fn) (map-user-tweets fn user) (user-tweets user)

Messages (get-tweet-msg id) (map-tweet-msgs fn) (map-user-msgs fn user) (user-msgs user) (map-user-received-messages fn user)

DB API Status:

The DB interface is highly experimental and has only been partially tested. In particular, we currently store copies of embedded structures and should use the existing DB id references to save/restore. We should also hook into the lookup functions in the main API to avoid reparsing stored objects.

The time index is currently based on strings, so not properly ordered, we need to cleanup using universal time integers instead of strings throughout the API.

Ian Eslick 2/26/2009

Something went wrong with that request. Please try again.