Skip to content
/ lion Public

플러스 친구 메세지 발송 자동화 모듈 using selenium

Notifications You must be signed in to change notification settings

goofcode/lion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d2c6770 · Sep 18, 2017

History

28 Commits
Sep 3, 2017
Sep 17, 2017
Sep 4, 2017
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017
Sep 3, 2017
Sep 18, 2017

Repository files navigation

lion(라이언)

1. Outline, Requirement

English
  • lion is automated messaging module for kakao plus friend admin.
  • You SHOULD modify setting.json to 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 for selenium.
      • 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에 대해서는 여기를 참조해주세요.

2. Usage

$ 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())

3. API

  • 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 sent
    • link: link to be sent w/ message. if none, only content will be send
    • share: 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

About

플러스 친구 메세지 발송 자동화 모듈 using selenium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages