An open API service indexing awesome lists of open source software.

https://github.com/ganjinzero/pyserverchan

Server-chan for python. / Server酱python版。
https://github.com/ganjinzero/pyserverchan

python serverchan

Last synced: 12 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# pyserverchan
Server-chan for python.

# Install
```Python
pip install pyserverchan
```

# Getting started
You should go to [Server-Chan](http://sc.ftqq.com/3.version) 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.
```Python
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")
```