A command-line set of scripts that allows the ability to search Twitter and other "Tweet" services.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README
tweetsearch
tweetsearch.conf

README

TweetSearch
============
Usage:
	tweetsearch [options]

Options:
    -q, --query   	: Your query (i.e. -q 'happy hour')
    -l, --lastid	: Minimum tweet id to include in search
    -v, --verbose 	: Detailed output of what is going on
    -i, --interactive 	: Run in interactive mode
	-c, --count		: The max # of tweets to search per service
    -f, --format  	: Format to display each result (i.e. -f '%s/%u: %t [%a ago]')
        #s : service hostname
        #u : username
        #t : tweet
        #a : age of tweet
        #k : timestamp
        #i : tweet id

	--urlencode 	: makes the output safe for URLs

Requirements:
	- PHP
	- SQLite (to save search history)

Installation:
	- None.  Just run the script.

Examples:
	- You can cron this to a Twitter DM sent to you for every result
		./tweetsearch -q @derek  -f "[#u] #t" | while read a; do /usr/bin/curl -d "user=derek&text=$a" http://twitter.com/direct_messages/new.xml -u "tweenky:somepass"; done
	- Cron this to have an IM sent to you for every result
		./tweetsearch -q @derek  -f "[#u] #t" | while read a; do /home/derek/jab drgath@gmail.com; done
	- Find the people who have said "@derek" most
		./tweetsearch -q @derek -l 0 -f %u -c 100 | sort | uniq -c | sort -n

Authors:
		Derek Gathright (drgath@gmail.com)