Automate Whatsapp Messages In Python In Hindi – In This Post, I Will Teach You How to Send Multiple Messages On WhatsApp Using Python Script Using Python Selenium Library |
If You Don’t Know About Python Selenium Library Then Click On This Selenium And You Will Learn Everything About Python Selenium |
Automate Whatsapp Messages In Python
WhatsApp Automate Messages Send Karne Ke Liye Aapko Python Or Selenium Ko Aapne System Me Install Karna Padega, Or Dono Ko Install Karne Ke Liye Niche Diye Gaye Link Par Click Karke Install Kar Sakte Hai |
Setup – Installing Python, Selenium & Pycharm IDE
Ab Ham Python Selenium Ki Script Likhte Hai, Or Dekhte Hai, Ki Kaise Python Selenium Ki Help Se Automate Messages Send Kar Sakte Hai Whatsapp Par Wo Bhi Automate Karke |
Sabse Pahle Aapko Bata Du, Ki ye Is WhatsApp Bulk Message Sender Free Software Me Ham, Sub Kuch Implement Karne Wale Hai, Jaise Ki
WhatsApp Bulk Sender Features
- Messages Send
- Messages + Images
- Messages + Videos
- Invalid Number Detector
- Send Multiple Number’s
- Showing Send Or Not
- One Time Scan QR CODE
- Et..
Jo Aap Upper Features Dekh Rahe Hai, Ye Sab Ham Is Python Script Me Implement Karne Wale Hai |
WhatsApp Bulk Sender Code:
import time from selenium import webdriver import getpass from selenium.webdriver.chrome.options import Options # ---------------------------------INPUT FEILDS----------------------- print("Select Your Option ?") select_type = int(input("1. Only Messages \n2. Only Messages And Images \nEnter :")) msg = input("Enter Messages : ") phone_list = ["918534867764","910000000000"] #Enter Your Own Nuber List if select_type == 2: file_path = input("Enter Image Path :") # --------------------------ADVANCED SETTINGS-------------------------- options = Options() options.add_argument(f"--user-data-dir=C:/Users/{getpass.getuser()}/AppData/Local/Google/Chrome/User Data/Default") options.add_argument("--profile-directory=Default") options.headless = False options.add_argument("--window-size=1920,1080") options.add_argument('--ignore-certificate-errors') options.add_argument('--allow-running-insecure-content') options.add_argument("--disable-extensions") options.add_argument("--proxy-server='direct://'") options.add_argument("--proxy-bypass-list=*") options.add_argument("--start-maximized") options.add_argument('--disable-gpu/') options.add_argument('--disable-dev-shm-usage') options.add_argument('--no-sandbox') options.add_argument("--log-level=3") options.add_argument('--hide-scrollbars') options.add_experimental_option("excludeSwitches",["enable-automation"]) options.add_experimental_option("useAutomationExtension",False) # ------------------------START HERE ------------------------------ #Start Here browser = webdriver.Chrome(options=options) browser.get('https://web.whatsapp.com/') browser.maximize_window() time.sleep(15) val = select_type # -----------------------------ONLY MESSAGES------------------------------ if val == 1 or val == 0: print("Running......") for i in phone_list: browser.get(f'https://api.whatsapp.com/send?phone={i}&text={msg}') time.sleep(5) browser.find_element_by_xpath("//*[@id='action-button']").click() time.sleep(1) browser.find_element_by_xpath("//*[@id='fallback_block']/div/div/a").click() time.sleep(20) try: if browser.find_element_by_xpath('//div[@data-animate-modal-popup="true"]'): browser.find_element_by_xpath('//div[@role="button"]').click() print(f"Invalid Number : {i}" + '\n') pass except Exception as e: time.sleep(2) browser.find_element_by_xpath('//span[@data-icon="send"]').click() time.sleep(2) print(f"Successfully Send Msg : {i}" + '\n') time.sleep(5) print("Finish Task... \n") browser.quit() # -----------------------------ONLY MESSAGES AND IMAGES------------------------------ if val == 2: print("Running......") for i in phone_list: browser.get(f'https://api.whatsapp.com/send?phone={i}&text={msg}') time.sleep(5) browser.find_element_by_xpath("//*[@id='action-button']").click() time.sleep(1) browser.find_element_by_xpath("//*[@id='fallback_block']/div/div/a").click() time.sleep(20) try: if browser.find_element_by_xpath('//div[@data-animate-modal-popup="true"]'): browser.find_element_by_xpath('//div[@role="button"]').click() print(f"Invalid Number : {i}" + '\n') pass except Exception as e: time.sleep(2) attachment_section = browser.find_element_by_xpath('//div[@title = "Attach"]') attachment_section.click() image_box = browser.find_element_by_xpath('//input[@accept="image/*,video/mp4,video/3gpp,video/quicktime"]') image_box.send_keys(file_path) time.sleep(3) send_button = browser.find_element_by_xpath('//span[@data-icon="send"]') send_button.click() time.sleep(2) print(f"Successfully Send Msg : {i}" + '\n') time.sleep(5) print("Finish Task... \n") browser.quit()
Hope You Will Enjoy And Learn Everything Which You Expect From This Automation. If You Have Any Doubt Then Contact Me:- +91 8534867764
Note :
*If You Face Any Problem in Downloading We Will Provide You Another Or Some Alternate Link for Downloading. But We Do Not Provide Any Refund Policy After Purchasing.-
Great one, I also recently made a python library that abstracts selenium and provides an easy and intuitive interface plus advanced control over the WhatsApp Web, you might wanna have a look at it https://github.com/Kalebu/alright
Danish Sir bulk Whatsapp ka Code dona
contact me – 918534867764
JO aap ne Bulk Whatsaap wala Software tkinter main banaya hai us ka sources code do na
Danish sir
Thanks You
contact me – 918534867764