#
use xmpp to talk with gtalk
# but use this script you'll got
# An error occurred while looking up _xmpp-client._tcp.talk.google.com
import xmpp
jid = xmpp.protocol.JID( ' user@gmail.com ' )
cl = xmpp.Client(jid.getDomain(),debug = [])
cl.connect(( ' talk.google.com ' , 5222 ))
cl.auth(jid.getNode(), ' password ' )
Roster = cl.getRoster()
# s = Roster.getItems()#
print s
ss = Roster.getItem()
cl.send(xmpp.protocol.Message( ' somebody@gmail.com ' , ' hello ' ,typ = " chat " ))
# but use this script you'll got
# An error occurred while looking up _xmpp-client._tcp.talk.google.com
import xmpp
jid = xmpp.protocol.JID( ' user@gmail.com ' )
cl = xmpp.Client(jid.getDomain(),debug = [])
cl.connect(( ' talk.google.com ' , 5222 ))
cl.auth(jid.getNode(), ' password ' )
Roster = cl.getRoster()
# s = Roster.getItems()#
print s
ss = Roster.getItem()
cl.send(xmpp.protocol.Message( ' somebody@gmail.com ' , ' hello ' ,typ = " chat " ))