ps . https://pypi.python.org/pypi/kakao
ps2. pip install kakao
$ pip install kakao
$ easy_install kakao
This project is very much based on the LOCO Analysis from bpak.org.
from kakao import kakao kakao.duuid = 'YOUR_DUUID' kakao.sKey = 'YOUR_SKEY' kakao.user_id = 'YOUR_USER_ID'
document = checkin() host = document['host'] port = document['port']
h = hand()
l = login()
enc_l = enc_aes(l)
command = struct.pack('I',len(enc_l)) + enc_l
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((str(host),port))
s.settimeout(5)
s.send(h + command)
reply = s.recv(40960)
s = kakao.start() suc = kakao.write(s, chatId, "(하트)")
buy : get LOCO server information(HOST,PORT) from KakaoTalkcheckin : literaly check in to the LOCO servercwrite : create chat room and send messagewrite : send message to specific chat roomhand : handshake command which contains encryption informationlogin : notify to LOCO server that you will use commands (not sure)chaton : notify to LOCO server that you will start to chat with specific chat roomnchatlist : get chat room list from LOCO server (not sure)leave : leave the specific chat roomping : send ping to server that notify you are still aliveupseen : notify that you are checked specific chat roomread : get chat room list and info from server