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版。
- Host: GitHub
- URL: https://github.com/ganjinzero/pyserverchan
- Owner: GanjinZero
- License: mit
- Created: 2019-01-15T01:01:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T02:20:44.000Z (over 6 years ago)
- Last Synced: 2024-11-16T23:46:31.310Z (over 1 year ago)
- Topics: python, serverchan
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")
```