PyWhatKit 是一个简单而强大的 WhatsApp 自动化库,具有许多有用的功能
项目描述
PyWhatKit是一个具有各种有用功能的 Python 库。它易于使用,不需要您进行任何额外的设置。目前,它是最受欢迎的 WhatsApp 和 YouTube 自动化库之一。新更新经常发布,包含新功能和错误修复。
链接
- 加入我们的不和谐服务器 - https://discord.gg/62Yf5mushu
- 文档 -维基
安装和支持的版本
PyWhatKit 在 PyPi 上可用:
python3 -m pip install pywhatkit
pip3 install pywhatkit
PyWhatKit 正式支持 Python 3.8+。
克隆存储库
git clone https://github.com/Ankit404butfound/PyWhatKit.git
v5.4 有什么新功能?
Fix Flask import error
v5.3 中有什么新功能?
import pywhatkit
pywhatkit.start_server()
此方法可用于使用手机远程控制 PC(仅限 Windows)
- 确保您的 PC 和手机在同一网络上,在您的 PC 上,打开网络和 Internet 设置 > 属性 > 网络配置文件,确保将其设置为私有。
- 运行上面的代码,然后打开命令提示符并输入
ipconfig. - 搜索
IPv4 Address并在手机的浏览器上输入此地址并:8000在末尾附加,例如192.168.0.1:8000。 - 试着移动你的手指,你应该注意到你的光标也在移动。
- 你也可以打字和滚动,尽情享受吧。
- 更多信息在这里https://pywhatkit.herokuapp.com/remote-kit与原始代码。
特征
- 向 WhatsApp 群组或联系人发送消息
- 将图像发送到 WhatsApp 组或联系人
- 将图像转换为 ASCII 艺术
- 将字符串转换为手写
- 播放 YouTube 视频
- 使用 HTML 代码发送邮件
- 安装和使用
用法
import pywhatkit
# Send a WhatsApp Message to a Contact at 1:30 PM
pywhatkit.sendwhatmsg("+910123456789", "Hi", 13, 30)
# Same as above but Closes the Tab in 2 Seconds after Sending the Message
pywhatkit.sendwhatmsg("+910123456789", "Hi", 13, 30, 15, True, 2)
# Send an Image to a Group with the Caption as Hello
pywhatkit.sendwhats_image("AB123CDEFGHijklmn", "Images/Hello.png", "Hello")
# Send an Image to a Contact with the no Caption
pywhatkit.sendwhats_image("+910123456789", "Images/Hello.png")
# Send a WhatsApp Message to a Group at 12:00 AM
pywhatkit.sendwhatmsg_to_group("AB123CDEFGHijklmn", "Hey All!", 0, 0)
# Send a WhatsApp Message to a Group instantly
pywhatkit.sendwhatmsg_to_group_instantly("AB123CDEFGHijklmn", "Hey All!")
# Play a Video on YouTube
pywhatkit.playonyt("PyWhatKit")
有关更多示例和功能,请查看Wiki。
贡献
欢迎请求请求。对于重大更改,请先打开一个问题讨论您想要更改的内容。请务必在投稿前阅读指南。
执照
麻省理工学院。有关更多信息,请参阅此
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
pywhatkit-5.4.tar.gz
(14.2 kB
查看哈希)
内置分布
pywhatkit-5.4-py3-none-any.whl
(15.1 kB
查看哈希)