kvmgraph.blogg.se

Whatsapp web spam bot 2020
Whatsapp web spam bot 2020




whatsapp web spam bot 2020

I'm sorry I didn't hear you correctly at first. Well, you could use the classname, id or just any dynamic identifier you find inside the particular html tag. data-testid="search" is the selector I chose to use. We waited for the search button selector to load. Don't worry Puppeteer will wait for you to do that, thanks to setDefaultTimeout(0) What did we do next? You have to scan the QR code on the WhatsApp web before you login. SetDefaultTimeout(0) is to ensure that Puppeteer does not snap out of the page because it's taking too much time to load or open. Of course we added await because it's an asynchronous call and we don't know how long it will take to get a response. We instructed Puppeteer to go to the provided URL - WhatsApp's URL. Let's create an Express app to begin withĮnter fullscreen mode Exit fullscreen mode Revert to the Puppeteer docs to see how to do it You can actually skip the download if you want to. Note: When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work with the API. Puppeteer runs headless by default, but can be configured to run full (non-headless) Chrome or Chromium. Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. You should have Node installed locally on your computer.This tutorial is aimed at teaching you how to use Puppeteer to create a bot - a WhatsApp messenger bot in this case. I am not about to teach you to spam people. Initially, it was sweet (that's because I wrote a delay in the code) until it became persistent and almost never ending (but hey! It was just 500 messages or should I say spams 😉) then she yelled in a chat "stop spamming my phone" I know spamming someone is bad, forgive me! So recently, I decided to spam my girlfriend with 200 unsolicited "I love you" WhatsApp messages. Hi there! Today you are going to be learning how to create a WhatsApp chat messenger with Node.js and Puppeteer.






Whatsapp web spam bot 2020