Every repository with this icon (
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Sep 06 23:27:59 -0700 2009 | |
| |
README.textile | Thu Aug 27 15:17:56 -0700 2009 | |
| |
build-db.sql | Mon Sep 07 11:41:25 -0700 2009 | |
| |
common/ | Mon Sep 07 17:47:00 -0700 2009 | |
| |
crawler/ | Mon Sep 07 11:41:25 -0700 2009 | |
| |
db_migrations/ | Mon Sep 07 11:41:25 -0700 2009 | |
| |
extras/ | Tue Sep 29 16:19:16 -0700 2009 | |
| |
tests/ | Mon Sep 07 17:47:00 -0700 2009 | |
| |
webapp/ | Thu Sep 10 09:12:48 -0700 2009 |
Twitalytic
Twitter data crawler, replies archiver, and statistics generator.
WARNING: Pre-alpha code, PROCEED AT YOUR OWN RISK!
This is not production code. This is a pre-alpha web application. The intended audience is server administrators with experience installing and troubleshooting PHP/MySQL hosted web applications. While Twitaltyic uses OAuth to access Twitter, the webapp’s login is not as secure as it should be. Right now this code is for experimentation and tinkering only. Do not run on a public, production server. You have been warned.
SYSTEM REQUIREMENTS
INSTALL
In future versions, this will get easier.
Set up database
- Create a database and select it, i.e., CREATE DATABASE twitalytic
- Build tables with
build-db.sql
Register your app with Twitter (for OAuth support)
- Log into Twitter and register your Twitalytic instance. Set the callback URL to
http://yourserver.com/path-to-twitalytic-webapp/account/oauth.php. Write down the items labeled “Consumer key” and “Consumer secret.”
Configure the app
- Shared libraries: Rename
twitalytic/common/config.sample.inc.phptoconfig.inc.php. Add your database credentials, file and webapp paths, and the key/secret you got from Twitter in the previous step. - Crawler: Rename
twitalytic/crawler/config.crawler.sample.inc.phptoconfig.crawler.inc.phpand set include path to the absolute location oftwitalytic/common - Webapp: Rename
twitalytic/webapp/config.webapp.sample.inc.phptoconfig.webapp.inc.phpand set include path to the absolute location oftwitalytic/common - Webserver (optional): Set
httpd.confDocumentRoot totwitalytic/webapp/
RUN
Visit the web application on your server, register/login, and set up your Twitter accounts.
Then, run the crawler to load your Twitter data:
$ php crawler/crawl.php
To view what’s going on with the crawler, use this command:
$ tail -f crawler/logs/crawler.log
Cron the crawler’s run command to go at least once an hour.
See also this helpful HOWTO on installing Twitalytic on Dreamhost.







