• This repository has been archived on 09/Sep/2020
  • Stars
    star
    166
  • Rank 226,658 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

simple kakaotalk loco/http protocol wrapper for python

pykakao

pykakao is a simple kakaotalk LOCO/HTTP API protocol wrapper for python.

! warning: cannot get new session_key anymore.

Installation

Install it using setup.py.

python setup.py install

If you are using Windows, you need to install PyCrypto manually.

To install PyCrypto manually, follow these steps.

  • Download zip archive.
  • Unzip it in Python's site-packages directory(Ex. C:\Python27\Lib\site-packages or /Library/Python/2.7).

Example Codes

  1. How to get session key and user id
from pykakao import kakaotalk

kakao = kakaotalk()
if kakao.auth("EMAIL", "PASSWORD", "COMPUTER NAME", "DEVICE ID"):
    # computer name and device id are not important things. you can pass any string you want.
    print kakao.session_key
    print kakao.user_id
else:
    print "auth failed."
  1. A Simple echoing bot
from pykakao import kakaotalk

kakao = kakaotalk("SESSION KEY", "DEVICE ID", USER ID)
if kakao.login():
    while True:
        packet = kakao.translate_response()
        
        if not packet:
            print "connection closed."

        if packet["command"] == "MSG":
            if packet["body"]["chatLog"]["authorId"] != kakao.user_id:
                kakao.write(packet["body"]["chatLog"]["chatId"], packet["body"]["chatLog"]["message"])
else:
    print "login failed."

License

pykakao is following MIT License.

Thanks To

Cai(0x90 :: Cai's Blog)

More Repositories

1

asyncio-throttle

Simple, easy-to-use throttler for asyncio.
Python
115
star
2

go-windows-programming

Go Windows Programming Tutorial
Go
55
star
3

syso

๐Ÿ”ง tool for embedding various type of resources in go Windows executable
Go
40
star
4

tmux-reset

Easy way to reset all options to default in tmux
Python
39
star
5

hwp5-table-extractor

A tool for extracting tables from Hwp file.
Python
30
star
6

go-tray-icons-tutorial

Go
24
star
7

python-naverlogin

A tiny module for Naver login.
Python
17
star
8

ole-py

Lightweight Microsoft OLE file parser in pure Python
Python
15
star
9

pyneis

python http client for Neis service(http://neis.go.kr/)
Python
6
star
10

gersang-spritelib

python library for extract or zip Gersang's sprite files
Python
5
star
11

cfb

Microsoft CFB(Compound File Binary) parser
Go
4
star
12

gmaily

Pythonic Gmail client
Python
3
star
13

ikakao

Kakao i Open Builder SDK
Python
3
star
14

kakaobot

Super simple framework for Kakaotalk auto-reply bot based on aiohttp
Python
2
star
15

hallazzang.github.io

Hanjun Kim's Dev Blog
HTML
1
star
16

labsafe-bypass

Go
1
star
17

easybot

Go
1
star
18

go-snippets

Minimal Go code snippets.
Go
1
star
19

gosang

Gersang sprite library for Go
Go
1
star
20

thecamp

TheCamp(http://www.thecamp.or.kr/) HTTP client & tools
Go
1
star
21

react-event-calendar

Calendar with events demo using React
JavaScript
1
star
22

tendermint-toolkit

HTML
1
star
23

ooconsole

Object-oriented console framework written in C++
C++
1
star
24

winapi

Call Windows API from Go
Go
1
star
25

libhwp

Imported repository from https://gitlab.com/sebuls/libhwp
C
1
star
26

aria-go

Go implementation of the ARIA encryption algorithm
Go
1
star
27

ft-drawing

Fourier transform drawing playground
JavaScript
1
star
28

go-worker

Resizable worker goroutine pool
Go
1
star