Send message WhatsApp with python and selenium - python

I sent a WhatsApp message from Python, selenium. It opens WhatsApp Web and sends a message to it, and it appears within a second, but I open the chat, and the message does not reach the number that I entered in the code, and this error appears

It looks like maybe the problem could be a permission with your device (maybe turning it into developer mode could help), but I think that an easier option would be to use the library pywhatkit. It is an easier way to send Whatsapp messages with python and there are many online resources to help you learn how to use it. https://pypi.org/project/pywhatkit/

Related

Automate WhatsApp to Send a Certain Message When a Received Message Includes a Certain Phrase

I am trying to see if it is possible to send a certain message to a group chat on WhatsApp when a message with a certain phrase is received. As an example assume I receive a message "Hello darling can you stop by at the grocery store? I love you". Since this message includes "I love you" I want to respond "Love you baby" automatically. Is this possible? If so how can I achieve my goal? My preferred language is Python.
Twilio has a good python api to do this (they only have a free trial but it's a clean way to do what you want to do).
In a web environment the code will run inside a server: the api will send it a webhook when a message is received; the program will filter out messages that do not need a reply; then it will send back a message to ones that need a reply.
Another way is to log into whatsapp web using selenium and then building all the logic upon it.

Sending multiple whatsapp messages using python without reopening browser

I was looking for a way to send WhatsApp messages to more than one user (customer number) without reopening the browser, I came across Pywhatkit of whose internal implementation requires reopening the browser every time you want to send a message or media.
Any advice or recommendation of which python tool or library I can use to accomplish this, I will highly appreciate.
Thank you

Program to respond to Whatsapp messages

I need a program that detects a whatsapp message, and depending on what the message says it replies with a something different. Does anyone have any idea or code that will help me go about making this program with python?
There are many options available in order to build a WhatsApp bot using Python, however take a look at this tutorial, which is simple and gets you up and running.

WhatsApp Automation using Selenium

I'm automating WhatsApp messaging on WhatsApp Web using selenium in python.
The code is working all fine. It's sending out messages.
But is there any way, i can use it to send Bulk messages using WhatsApp.
I tried, but I ended up whatsapp blocking my number.
For sending the bulk message you can use a loop and can use a time delay for sending the messages in a specific time delay.
Or for getting help with code you have to share your code.
You can use any virtual number to use for your bot, So you not have to worried for getting blocked by whatsapp. There are some apps which are providing free virtual numbers.
By the way I have also created a whatsapp bot for automate whatsapp messaging and I have used that number for 1 year to test the working and progress of automation and have used much and still that number is not get blocked by whatsapp.

Suggestion: The best way to send messages on Facebook without getting banned using python

I'm using a python script that monitors a website and sends me messages on Facebook if there is any specific updates.
I have tried a module which called 'fbchat', so simple and so easy, but the problem is that I'm using real Facebook accounts and somehow Facebook detected that it's a bot and banned that profile, even if I have made random pauses in my code.
I know that I can do make those notifications through emails, but for me Facebook messages are better... Any ideas about how can I make it possible (maybe through bots!!)?
Thank you!
First take a look at which parameters(headers and payloads) the POST method takes(using network tools in google chrome for example), and try again with as many parameters as possible, while also using a session so cookies are enabled as well.
Different websites use different methods of detecting bots, and you'll just have to test and see what works.
P.S: take a look at this answer for more info.
Multiple Accounts are not allowed on Facebook, and there is no (allowed) way to send messages between users. You can only send messages from Pages to Users, and only if the User started the conversation. You can find more information about that in the docs: https://developers.facebook.com/docs/messenger-platform/

Categories