I suppose what I'd like to do is have some sort of cron job running a script (that I'd code if I knew how) keeping a tally of every link tweeted and by whom. I am only concerned with users I define, not the whole community.
http://dev.twitter.com/2008/02/how-to-build-twitter-agent.html
But using a Jabber agent for tracking stuff is probably a bit too
much. As I said, Net::Twitter works quite well:
http://search.cpan.org/~cthom/Net-Twitter-1.08/lib/Net/Twitter.pm
And using it is just a matter of writing stuff like:
#!/usr/bin/perl
use Net::Twitter;
my $twit = Net::Twitter->new(username=>"myuser", password=>"mypass" );
$result = $twit->update("My current Status");
$twit->credentials("otheruser", "otherpass");
$result = $twit->update("Status for otheruser");
To obtain your followers' statuses, issue:
$twit->following()
Some examples and more stuff can be found at my Porralia library:
http://code.google.com/p/porralia/
If you need assistance, just email me. And if you want to do it in
another language, just look for a Twitter library, there are loads of
them.
Cheers
JJ
What would be better is to implement a bot that connects to Twitter over
XMPP, that follows all the people you are interested in. This way, you
avoid having to poll the Twitter service and instead receive push
updates.
Yes, this is a lot more complicated, but is more resource-friendly on
the Twitter servers.
The best thing Twitter could do is participate in some sort of feed-mesh
pub-sub service over XMPP. Then, they could punt on trying to scale
these data mining applications to whomever runs the syndication servie.
(I might be interested in setting such a thing up, if the Twitter folks
are interested in collaborating on such a thing.)
-- Dossy
--
Dossy Shiobara | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)