Skip to main content

logo

PyWhatKit is a Python library with various helpful features. It is an easy to use library which does not requires you to do some additional setup.

Links

Installation

This library can be installed by the pip command, open your command prompt and type in the following command...

pip install pywhatkit

Functions of this library

First import the library using the command import pywhatkit as kit and then proceed to call the functions

kit.sendwhatmsg()

This function can be used to send WhatsApp message at certain time

The parameters are

phone_num (required) - Phone number of target with country code
message (required) - Message that you want to sendwhatmsg
time_hour (required) - Hours at which you want to send message in 24 hour format
time_min (required) - Minutes at which you want to send message
wait_time (optional, val=20) - Seconds after which the message will be sent after opening the web
print_waitTime (optional, val=True) - Will print the remaining time if set to true

Some common errors

CountryCodeException - Check if the phone number passed into the parameter has country code
Message not getting delivered - Check internet speed and increase wait_time to 30 or above CallTimeException - The web takes some time to load so some delay is required, make sure the seconds left is greater than the wait_time
SyntaxError - Make sure the first two parameters are string and the rest are int

kit.playonyt()

This function can be used to search and play a particular video on YouTube by using just the keyword, like "Shape of You song"

The parameters are

topic (required) - Topic or title that is related to the video

Some common errors

Video not opening - Make sure the topic exists or you have provided proper spelling

kit.search()

This function can be used to make a google search for any term

The parameters are

topic (required) - Topic or title that you want to search

kit.info()

This function can be used to fetch information about any topic

The parameters are

topic (required) - Topic or title that you want to get information about
lines (optional, val=3) - Number of lines that you want to print about it

Some common errors

Not returning paragraph - Make sure the topic exists and you are providing specific title

kit.image_to_ascii_art()

This function can be used to convert any image to ASCII art

The parameters are

imgpath (required) - Path to the image that you want to convert
output_file (optional, val=pywhatkit_asciiart.txt") - File where you want to save the output characters

Some common errors

File not found - Make sure that the path of the image is valid

kit.text_to_handwriting()

This function can be used to convert text to hand written characters, the character sets has been written by me

The parameters are

string (required) - String that you want to convert to handwritten text
save_to (optional, val = "pywhatkit.png") - Path where the image will be saved
rgb (optional, val = [0,0,138]) - Color of the handwritten character in rgb format

Some other functions

pywhatkit.showHistory() # Will show information of all the messages sent using this library

pywhatkit.shutdown(time=100) # Will shutdown the system

pywhatkit.cancelShutdown() # Will cancel the scheduled shutdown

pywhatkit.tutorial_hindi/english() # Will open a tutorial on how to use this library on YouTube in respective language

pywhatkit.join_discord() #Will redirect you to our Discord server

pywhatkit.send_mail("test@gmail.com", "password", "Test Mail", "This is a test email", "testrecv@gmail.com")

pywhatkit.help.<function>() # For more information

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. For more detailed information see this

License

MIT

Metadata

Release files for pywhatkit 4.7

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

Source distribution (sdist)

Source distribution for pywhatkit 4.7
File Size Uploaded
pywhatkit-4.7.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywhatkit 4.7
File Interpreter ABI Platform
pywhatkit-4.7-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / pywhatkit-4.7.tar.gz

Download URL pywhatkit-4.7.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
27a0ca14eb8f504b478d176c4a146f4c5465f22d333625735fa1faa02b2b0cde
BLAKE2b-256 checksum
How to use checksums
e49cb7397cd3819fced9019da02ec9afdacb07ddacd42c2c0a727959dc81ade2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

Release files / pywhatkit-4.7-py3-none-any.whl

Download URL pywhatkit-4.7-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
668e9c50bc2b042b17ac6c8640000eaa2d0659fb43c96b9ca20188fd2bbaf3a7
BLAKE2b-256 checksum
How to use checksums
a3b7b9568a086e5b94da193e6ebdb028809b284a332f366995bfcf367310fc93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

Release history Release notifications | RSS feed

5.4.1

1 release file

5.4

2 release files

5.3

2 release files

5.2

2 release files

5.1

2 release files

5.0

2 release files

4.9

2 release files

4.8

2 release files

This release

4.7 This release

2 release files

4.6

2 release files

4.5

2 release files

4.4

2 release files

4.3

2 release files

4.2

2 release files

4.1

2 release files

4.0

2 release files

3.9

2 release files

3.8

2 release files

3.7

2 release files

3.6

2 release files

3.5

2 release files

3.4

2 release files

3.3

2 release files

3.2

2 release files

3.1

2 release files

3.0

2 release files

2.9

2 release files

2.8

2 release files

2.7

2 release files

2.6

2 release files

2.5

2 release files

2.4

2 release files

2.3

2 release files

2.2

2 release files

2.1

2 release files

2.0

2 release files

1.9

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.5

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

1 release file

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