lionis automated messaging module for kakao plus friend admin.- You SHOULD modify
setting.jsonto use this module."admin_info": set admin email and password"pf_home_url": set url for plus friend center"chrome_driver_path","phantom_driver_path": set path for drivers forselenium.- required to have proper driver file(binary or exe ...)
- for more information about
selenium, please check here.
lion은 카카오 플러스 친구 관리자를 위한 메세징 자동화 모듈입니다.- 모듈을 사용하기 위해서는
setting.json파일을 반드시 수정해야합니다."admin_info": 관리자의 이메일과 비밀번호를 설정합니다."pf_home_url": 플러스 친구 센터 홈의 url을 설정합니다."chrome_driver_path","phantom_driver_path":selenium에서 사용할 드라이버의 경로를 설정합니다.- 사용할 드라이버 파일(binary 또는 exe)이 존재해야 합니다.
selenium에 대해서는 여기를 참조해주세요.
$ git clone https://github.com/goofcode/lion
$ cd lion
$ pip3 install -r requirements.txt
from lion import message
from lion import info
message.send_basic_text_message('msg_content', 'https://github.com/goofcode')
print(info.get_left_free_message_number())-
common parameter
mode: mode which crawling process runs on, 'chrome' or 'phantom'(headless, default)
-
message.send_basic_text_message(content, link=None, share=True, mode='phantom')- send basic text type message to all friends
content: message content to be sentlink: link to be sent w/ message. if none, only content will be sendshare: whether enable 'share to friend'
-
info.get_friend_number(mode='phantom')- (int)get number of friend of plus friend
-
info.get_left_free_message_number(mode='phantom')- (int)get number of left free message