Skip to main content
PyWapFeion
==========

**[由于种种原因](http://whouz.com/PyWapFetion-已经停止维护了/), PyWapFetion 已经不再被维护了;希望接手此项目的人请与我( whtsky#gmail )联系,谢谢**

PyWapFetion是一个飞信的Python模块,使用Wap飞信协议。
因为目前没有看到比较好的Python飞信模块(PyFetion虽然很强大,但是基于电脑客户端的协议,容易被各种验证码问题所困扰),所以自己动手写了一个。

安装
---------------

在终端下输入(*nix): `sudo pip install PyWapFetion` 或者 `sudo easy_install -U PyWapFetion`
或者把源码下载下来,运行:`python setup.py install`

使用
---------------

from PyWapFetion import Fetion, send2self, send

#快速发送:
send2self('手机号', '密码', '信息')
send('手机号', '密码', '接收方手机号', '信息')

#----------------------------------------------------------------------
myfetion = Fetion('手机号', '密码')

myfetion.changestatus('0') # 改变在线状态

myfetion.send2self('发给自己的东西')
myfetion.findid('输入手机号,返回飞信ID')
myfetion.sendBYid('飞信ID', '消息')
myfetion.send('手机号', '消息', sm=True) # 发送飞信信息
#通过设定sm=True强制发送短信(sm=ShortMessage)
myfetion.send('昵称', '消息') # 你也可以这么干
myfetion.addfriend('手机号', '你的昵称(5字以内)')
myfetion.send(['手机号1', '手机号2', '这就是传说中的群发'], '消息')
# 成功返回True,失败返回False

myfetion.send2self('这个是发给自己的定时短信', time='201111201120')
'''发送定时短信。格式:年月日小时分钟
如:2011年11月20日11时14分:201111201144
2012年11月11日11时11分:201211111111
注意:时间允许范围:当前时刻向后10分钟-向后1年
如:当前时间:2011年11月20日 11:17
效时间范围是:2011年11月20日11:27分到2012年11月20日11:27分
'''

myfetion.changeimpresa('改签名')
myfetion.alive() # 保持在线,10分钟以上无操作会被判定为离线
#如果你想要自动保持在线,那么:
from PyWapFetion.AliveKeeper import AliveKeeper
AliveKeeper(myfetion)

myfetion.deletefriend('要删除的好友ID')
myfetion.addblacklist('要拉黑的好友ID')
myfetion.relieveblack('要解除拉黑的好友ID')

myfetion.logout()
# -----------------------------------------------------------------------

with Fetion('手机号', '密码') as f: # 其实你也可以用with,这样更方便一点
f.send2self('xxxx')

Metadata

Release files for PyWapFetion 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for PyWapFetion 0.9.6
File Size Uploaded
PyWapFetion-0.9.6.zip 11.1 kB Details
PyWapFetion-0.9.6.tar.gz 5.6 kB Details

Release files / PyWapFetion-0.9.6.zip

Download URL PyWapFetion-0.9.6.zip
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
43844191c6bc876d9d43a6faea21f6d56a5a69b446ff1c66856c35015ad5f76a
BLAKE2b-256 checksum
How to use checksums
bf52542904ec0ee8a39f335d15770dec0c1dff6f2e1cb0cc13a32f5847a3e461
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyWapFetion-0.9.6.tar.gz

Download URL PyWapFetion-0.9.6.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
664d5ae336d1cc7862f3087b2be3d08c6bf4a2b592b7f5e9d7a9fdbc93a0362d
BLAKE2b-256 checksum
How to use checksums
5bfe3eb95888c50d598807d50a2816cfaaf7e01fad6c78df45467d71e921a2cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.6 This release

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9

2 release files

0.8

2 release files

0.7

1 release file

0.6

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page