Giter Site home page Giter Site logo

lion's Introduction

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

lion's People

Contributors

goofcode avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

lufovic77

lion's Issues

Use headless Chrome instead of phantomJS

phantomJS has lower speed uses more memory than headless chrome as I know.
So it is necessary to use headless chrome for resource constrained system(including my cloud server..).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.