PyWhatKit – Automate WhatsApp and Everyday Tasks with Python



This content originally appeared on DEV Community and was authored by MrRobot

PyWhatKit is a Python library designed to automate simple but useful daily tasks such as sending WhatsApp messages, playing YouTube videos, performing Google searches, and converting text to handwriting. One of its most popular features is WhatsApp automation, which allows sending scheduled messages, images, and even group messages directly through WhatsApp Web. It’s a beginner-friendly library but powerful enough to handle many automation needs.

Installation:

pip install pywhatkit

Example usage:

import pywhatkit

# Send a WhatsApp Message to a Contact at 1:30 PM
pywhatkit.sendwhatmsg("+910123456789", "Hi", 13, 30)

# Send an Image to a Group with the Caption "Hello"
pywhatkit.sendwhats_image("AB123CDEFGHijklmn", "Images/Hello.png", "Hello")

# Send a WhatsApp Message to a Group instantly
pywhatkit.sendwhatmsg_to_group_instantly("AB123CDEFGHijklmn", "Hey All!")

# Play a Video on YouTube
pywhatkit.playonyt("PyWhatKit")

PyPI page: https://pypi.org/project/pywhatkit/
GitHub page: https://github.com/Ankit404butfound/PyWhatKit

3 Project Ideas:

  1. Build a WhatsApp reminder bot that sends scheduled messages to friends or groups.
  2. Create an automated WhatsApp announcement system for teams or communities.
  3. Develop a productivity tool that fetches search results and plays tutorial videos automatically.


This content originally appeared on DEV Community and was authored by MrRobot