Skip to main content

WhatsApp Web Automation Library using selenium

Project description

whatsapp

WhatsApp Web Automation Library using selenium.

whatsapp

It is a Simple WhatsApp Web Automation Library using selenium.

Installation

pip install whatsapp-auto

whatsapp-auto officially supports Python 3.7+.

Usage

Default

import whatsapp_auto

whatsapp = whatsapp_auto.Login()  # Scan the qr code

whatsapp.send_message(phone_no,message) # whatsapp.send_message('+919372091360','hii')

Send File

whatsapp.send_file(phone_no,file_path,caption)  # whatsapp.send_file('+919372091360','/Users/anish/Desktop/whatsapp/Image.png','image')

Send Multiple File

whatsapp.send_multiple_files(phone_no,folder_path,caption)  # whatsapp.send_multiple_files('+919372091360','/Users/anish/Desktop/whatsapp/','image')

Send Message to Group

whatsapp.send_message_to_group(group_link,message)   # whatsapp.send_message_to_group('J6iHb0tR0ky5lJITHLV03b','hi')

Send File to Group

whatsapp.send_file_to_group(group_link,file_path,caption)  # whatsapp.send_file_to_group('J6iHb0tR0ky5lJITHLV03b','/Users/anish/Desktop/image.png')

Send Multiple File to Group

whatsapp.send_multiple_files_to_group(group_link,folder_path,caption) # whatsapp.send_multiple_files_to_group('J6iHb0tR0ky5lJITHLV03b','/Users/anish/Desktop/whatsapp/')

To close browser

whatsapp.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whatsapp_auto-1.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

whatsapp_auto-1.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page