line-client
2manslkh 제작
Web & Frontend Development요약
LINE messaging integration via Chrome extension gateway.
설명
이 스킬이 하는 일
Python client for the LINE messaging platform via LINE's Chrome extension JSON gateway. Supports sending and receiving messages, managing contacts and groups, handling reactions, and updating profiles. Authentication requires scanning a QR code in the LINE mobile app, with tokens valid for approximately 7 days.
LINE has no official API for personal accounts, and this library provides one of the few ways to automate personal LINE interactions without screen scraping.
사용 시점
- Automating LINE message sends from a Python script
- Polling a LINE group chat for incoming messages
- Looking up or adding LINE contacts by phone number
- Marking conversations as read in bulk
- Reacting to messages with emoji responses programmatically
예시 워크플로
User asks: Send 'Meeting at 3pm' to a LINE contact with MID U1234abc
- 1
Load auth token from ~/.line-client/tokens.json
- 2
Initialize LineChromeClient with the auth token
- 3
Call client.send_message('U1234abc', 'Meeting at 3pm')
- 4
Catch APIError(10051) if token is expired and prompt re-authentication via QR login
Message delivered to the specified LINE contact
요구 사항
- lstm.wasm and lstmSandbox.js in repo root
- LINE mobile app for QR code authentication
설치
clawhub install 2manslkh/line-clientCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.