[BangPypers] Fwd: [PyCon-Organizers] PyCon Twitter Bot

Kenneth Gonsalves lawgon at au-kbc.org
Wed Jul 1 10:43:27 CEST 2009

On Wednesday 01 July 2009 09:43:49 Kenneth Gonsalves wrote:
> > I just need root ssh access on the inpycon machine. Kenneth,
> > can u send this info to me directly ?
> the conference software is a django application. To tweet, all we need to
> do is create a signal on save which will tweet the info to twitter. The
> only thing we need to do is to decide what info we are going to send. For
> example, every time a delegate registers, his name and a link to his info
> could be tweeted. Or when a talk is proposed, a post made, that can be
> tweeted also. AFAIK there is no need to install a bot.

ok - I have written the code. Whenever a delegate registers, this is tweeted 
(if that is the correct term). There are two questions:

1. do we enable it?
2. what information do we send? I would suggest just name with a link to his 

btw, the code is here:

def tweetit(sender,**kwargs):
        extract relevant info and tweet it
    if kwargs['created']:
        t = twitter.Api(settings.TWITTER_USER, settings.TWITTER_PASSWORD)
        t.PostUpdate("%s has registered as a delegate" 
post_save.connect(tweetit, sender=Delegate)

I think even no_mind would concede that django rocks.
Kenneth Gonsalves

More information about the BangPypers mailing list