用于whatsapp web的python api
whap的Python项目详细描述
[![文档状态](https://readthedocs.org/projects/whapy/badge/?版本=最新](http://whapy.readthedocs.io/en/latest/?
>checkout the[documentation][doc].
[doc:http://whapy.readthedocs.io/
<<
``py
impimport whapy
>wap.event
>async def-on-u-message(聊天、消息):打印(新消息到达时间:
打印(新消息到达时间:“)
(0,len(消息)):
如果不是消息[i].is_media():
打印(消息[i].get_content())
如果是消息[i].get_content()=“@who”:
聊天。发送_消息(“你吗?”)
@wap.event
async def on_ready():
print(“以“+wap.get_me()”登录)
````
依赖项
-python 3.4.2+
-`selenium`库
-`a webdriver`(http://selenium python.readthedocs.io/installation.html驱动程序)
>checkout the[documentation][doc].
[doc:http://whapy.readthedocs.io/
<<
``py
impimport whapy
>wap.event
>async def-on-u-message(聊天、消息):打印(新消息到达时间:
打印(新消息到达时间:“)
(0,len(消息)):
如果不是消息[i].is_media():
打印(消息[i].get_content())
如果是消息[i].get_content()=“@who”:
聊天。发送_消息(“你吗?”)
@wap.event
async def on_ready():
print(“以“+wap.get_me()”登录)
依赖项
-python 3.4.2+
-`selenium`库
-`a webdriver`(http://selenium python.readthedocs.io/installation.html驱动程序)