GanjinZero / pyserverchan

Server-chan for python. / Server酱python版。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyserverchan

Server-chan for python.

Install

pip install pyserverchan

Getting started

You should go to Server-Chan get a SCKEY and bind WeChat. Your URL will be like 'https://sc.ftqq.com/[SCKEY].send '. You can use following functions to send text, picture, markdown files.

from pyserverchan import pyserver
svc = pyserver.ServerChan(user_URL) # If you're the first time using pyserverchan on this computer
svc = pyserver.ServerChan() # If you're not the first time on this computer
svc.output_to_weixin("ATestMessage.")
svc.output_to_weixin_picture("http://sc.ftqq.com/static/image/bottom_logo.png")
svc.output_to_weixin_markdown("J:/pyserverchan/README.md")

About

Server-chan for python. / Server酱python版。

License:MIT License


Languages

Language:Python 100.0%