<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yash Aggarwal on Medium]]></title>
        <description><![CDATA[Stories by Yash Aggarwal on Medium]]></description>
        <link>https://medium.com/@yashaggarwal_?source=rss-e49c31a8b3d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SZZVi3a6m55tadUaBoCChQ.jpeg</url>
            <title>Stories by Yash Aggarwal on Medium</title>
            <link>https://medium.com/@yashaggarwal_?source=rss-e49c31a8b3d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 00:32:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yashaggarwal_/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Web Whatsapp Message Automation Through Python.]]></title>
            <link>https://medium.com/@yashaggarwal_/web-whatsapp-message-automation-through-python-613d48474dd7?source=rss-e49c31a8b3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/613d48474dd7</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Yash Aggarwal]]></dc:creator>
            <pubDate>Sat, 05 Sep 2020 04:45:22 GMT</pubDate>
            <atom:updated>2020-09-11T13:20:39.093Z</atom:updated>
            <content:encoded><![CDATA[<p>Web Whatsapp Message Automation Through Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*J7jV72kk2sN6Wc2e" /></figure><p>Do you ever wonder sending messages automatically by just running a simple python script? Yes, you heard it right, it can be achieved but writing code is one the challenging part.<br>Anyhow, Selenium is a smart package in python with which developers can automate the browser’s activity. Thus, minimizing the number of clicks done by any individual. Thus making us lazier than before (FYI: I love Selenium).</p><p>A few days back, I got a job for sending messages on WhatsApp to different clients at daily basics. Being a programmer and doing this hard manual labor is not kind of our jam, although we love to spend hours in front of the computer writing, running, fixing codes, and a b̶r̶i̶l̶l̶i̶a̶n̶t̶ good thought came across my mind that ‘Why wouldn’t I write a code that will do it automatically?’.<br>With this, I dedicated my time to make use of python and Selenium and use it to automate message transfers. Finally, I ended making robust code, capable of handling many errors, and the most prominent ‘pip library’ (this is my first one 🤞). The main point of making as a pip library is that anyone who wishes to do the same process has not to write 100 lines of code instead, that person can perform the same task with 4–5 lines of code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*RZVUMkqb6di5jkUg" /><figcaption>It is this simple as in this picture</figcaption></figure><h3>PYWAKIT LIBRARY — an web-whatsapp message automation library</h3><h3>Where you can find this library?⚗️</h3><p>You can find <a href="https://pypi.org/project/pywakit/">pywakit</a> command to install on your local system.</p><h3>What is the basic requirement to use this library?📖</h3><ol><li>Library/Packages — Selenium, Chromedriver(for web automation).</li><li>IDE — Jupyter Notebook, Sublime, Visual Studio Code (It can even your command prompt, it just have to run Python).</li><li>Browser — Opensource Chromium web browser(FYI Google chromedriver is preferred).</li></ol><h3>How to install pywakit?📋</h3><pre># You can easily start using this Library<br># Run the following command in your command prompt<br># Make use pip library is installed on your system. <br># run the following command to ensure it<br>&gt;&gt; <strong><em>pip --version</em></strong><br># To install pywakit, run the following command<br>&gt;&gt; <strong><em>pip install pywakit</em></strong></pre><h3>Alternative way to install (clone and use)! 📋</h3><pre># You can also clone the repository by running the follwoing command <br>&gt;&gt; git clone <a href="https://github.com/y-agg/pywakit.git">https://github.com/y-agg/pywakit.git</a></pre><h3>Get Started Code 🏃</h3><pre># This will import WhatsApp class to send message<br>&gt;&gt; <strong><em>from pywakit import Whatsapp</em></strong></pre><pre># This will create the object of WhatsApp class<br>&gt;&gt; <strong><em>wa = Whatsapp()</em></strong></pre><pre># [Optional] If you slow internet connection, set<br>&gt;&gt; <strong><em>wa.retry= 20</em></strong> #or anything higher then 10<br># Default value of retry is 10</pre><pre># This is for initial setup to run the program<br># If You don&#39;t have Chromedriver in your system, call this function with no parameters. <br># Function will automatically download The chrome Driver file based on sys config.<br># This will properly work with google chrome and window user for now. In the future function, functionality will be fixed to work with all platforms. <br># For the rest to the users, pass the chrome driver location as a parameter to the function. <br># By any chance window use is facing problem for chrome driver downloading. Download it manually and pass the location of the file as a parameter.  <br>&gt;&gt;<strong><em> wa.setup_driver()</em></strong><br># Alternative option<br># CHROMEDRIVER _PATH is the path of chrome driver<br>&gt;&gt; <strong><em>wa.setup_driver(CHROMEDRIVER _PATH)</em></strong></pre><pre># This function is designed to QR code <br>&gt;&gt; <strong><em>wa.scan_code()</em></strong></pre><pre># This Function will send a message. It requires number(to whom the message is being sent) and the message(what should be sent?) as parameters. <br># Both Should be of String type  <br>&gt;&gt; <strong><em>wa.send_message(number,message)</em></strong></pre><pre># This will close of all the object and pointers. Its is for better practice.<br>&gt;&gt; <strong><em>wa.destroy()</em></strong></pre><pre># This Function will show all the log generated by the program.<br>&gt;&gt; <strong><em>wa.show_log()</em></strong></pre><pre># This function will print all the number to whom message is been sent till now.<br>&gt;&gt; <strong><em>wa.show_history()</em></strong></pre><h3>Bugs? 🍥</h3><p>“I think there’re some bugs on your code… !”. or maybe, “I think there’re some bugs on your code” Whatever the language is! You’re right, there are.</p><ol><li>The program will crash. There is no such thing as perfect code. Some or other possibilities will found to cause program failure. But I do my best to keep this module bug be.</li><li>Feel free to fix, reuse, and duplicate this repository.</li><li>Any Problem? I’ve must have inserted something that will point to contact detail.</li></ol><h3>LICENCE ✨</h3><p>This project under the MIT License — see the <a href="https://github.com/y-agg/pywakit/blob/master/LICENSE">MIT License</a> file for details.</p><h3>Connect 💡</h3><p>You can find more detail on <a href="http://y-agg.github.io/">http://y-agg.github.io/</a>. Feel free to ping me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=613d48474dd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>