• Status: Open
  • Priority: Low
  • Security: Public
  • Views: 29
  • Last Modified:

Whatsapp Message - Python Script

Hello Experts,

Please Guide how this is Possible i have seen video over Youtube to Send Whatsapp Msg Using Web.whatsapp with Selenium Driver I need to Learn if i have List of Contacts to Send Msg Differently How it is Possible.

Please Guide if it is Possible.

Regards,
0
WiseOwl Excel
Asked:
WiseOwl Excel
2 Comments
 
Subrat (C++ windows/Linux)Software EngineerCommented:
You need to install selenium webdriver for python.
Then follow the video link, code is already written.
while running python, it will navigate to whats app web.You need to manually scan your QR code(It can't be automated).Then type the message you want to send.
You need to use developer tool of Chrome to get the id/class/title name.

Moreover, to send msg to list of contacts, you need to keep the list in array/list. Then iterate through each element and get the title.You need to pass that in 'name' field of find_element_by_xpath() function as shown in the video. You need to keep it inside a loop and exit loop once all elemets are retrieved from list.

For sending different msg to different contact, you need to type the msg on the fly.As your code is running inside loop, different msg you can send easily.

It will be better, if you are keeping a map of user and msg then traversing the map to send msg.

First you try it and if facing any issue, can discuss here.
1
 
WiseOwl ExcelAuthor Commented:
Sir iam Newbie Please Guide with Code if Possible
 Regards
0

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now