wood_menu
Follow me on twitter

snippet

Python GTalk client

Python snippet to send XMPP messages using talk.google.com

#!/usr/bin/python
import xmpp

user = 'your_login'
pwd = 'your_password'

cnx = xmpp.Client('gmail.com')
cnx.connect( server=('talk.google.com',5223) )
cnx.auth( user,pwd,'python xmpp bot' )

cnx.send( xmpp.Message( "contact@domain.tld" ,"message" ) )

Tags

Flickr Random images

IMAG0020

About the author

photoAlexandre DE DOMMELIN

Geneva - Switzerland