<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pranav Viswanathan</title>
    <description>The latest articles on DEV Community by Pranav Viswanathan (@pranavviswanathan).</description>
    <link>https://dev.to/pranavviswanathan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F530110%2F2058b8ad-bb6d-456c-baf8-89e33b42c774.jpg</url>
      <title>DEV Community: Pranav Viswanathan</title>
      <link>https://dev.to/pranavviswanathan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pranavviswanathan"/>
    <language>en</language>
    <item>
      <title>Get GitHub Updates On Your Discord Server</title>
      <dc:creator>Pranav Viswanathan</dc:creator>
      <pubDate>Sat, 29 May 2021 18:30:55 +0000</pubDate>
      <link>https://dev.to/pranavviswanathan/get-github-updates-on-your-discord-server-5a2b</link>
      <guid>https://dev.to/pranavviswanathan/get-github-updates-on-your-discord-server-5a2b</guid>
      <description>&lt;p&gt;Want to get updates of changes from a certain repository on discord? Its really simple, lemme show you how its done.&lt;/p&gt;

&lt;p&gt;First, open the repository, go to setting and click on the "Webhooks" tab.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3lN7R1r2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2nsvy1orjd9mm4ch21x6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3lN7R1r2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2nsvy1orjd9mm4ch21x6.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
Click on "add webhook" and then enter your password when you are prompted to do so. You'll see something like this:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yxz8yCAY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tcu1upz7g53ilker7gam.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yxz8yCAY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tcu1upz7g53ilker7gam.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So first off, change the content type from "x-www-form-urlencoded" to "application/json"&lt;/p&gt;

&lt;p&gt;Now for the payload URL. Go to discord. click on a text channel's settings -&amp;gt; Integrations&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0nv5dh-N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z80xd5ss1bjqludt4gig.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0nv5dh-N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z80xd5ss1bjqludt4gig.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on create webhook, and then click on the "Copy Webhook URL"&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xVC1nrzt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j9vyf479cg1ns24ykyr9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xVC1nrzt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j9vyf479cg1ns24ykyr9.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
Now paste that link in the Payload URL text box and add a "/github" at the end of the url without the quotes&lt;/p&gt;

&lt;p&gt;Check the "Send me Everything" radio button and then click on add webhook.&lt;/p&gt;

&lt;p&gt;And Volia! You now get updates!&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D1R_GhVr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8qzttkk9ze97zk3ngd88.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D1R_GhVr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8qzttkk9ze97zk3ngd88.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
Connect with me on &lt;a href="https://www.linkedin.com/in/pranav-viswanathan-7976711b7/"&gt;Linkedin&lt;/a&gt;&lt;br&gt;
View my &lt;a href="https://github.com/PranavViswanathan"&gt;Github Page&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Deploy a Simple Website Using Github Pages</title>
      <dc:creator>Pranav Viswanathan</dc:creator>
      <pubDate>Wed, 26 May 2021 04:21:05 +0000</pubDate>
      <link>https://dev.to/pranavviswanathan/deploy-a-simple-website-using-github-pages-1jl</link>
      <guid>https://dev.to/pranavviswanathan/deploy-a-simple-website-using-github-pages-1jl</guid>
      <description>&lt;p&gt;&lt;strong&gt;So what is github pages?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Github pages is a feature in github that allows you to deploy static webpages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I do it?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Its actually really simple, lemme walk you through it:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Step 1:&lt;/em&gt;&lt;br&gt;
Make a github repository.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F354sjiujx2f8r0mewjic.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F354sjiujx2f8r0mewjic.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fli8vnf9gncb3jjp0tq0n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fli8vnf9gncb3jjp0tq0n.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Step 2:&lt;/em&gt;&lt;br&gt;
Upload a simple .html page with the name as index.html. It is important to note that the name of the web page &lt;strong&gt;MUST&lt;/strong&gt; be index.html&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpaxf1lh2d778q4pxep17.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpaxf1lh2d778q4pxep17.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
and then commit the change. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Step 3:&lt;/em&gt;&lt;br&gt;
Go to &lt;br&gt;
Repository settings -&amp;gt; Pages.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fujq5x5y5zy9eovfc4fan.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fujq5x5y5zy9eovfc4fan.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Step 4:&lt;/em&gt;&lt;br&gt;
Set the branch to main and save.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9oxqqggpc5xkbzhb0sue.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9oxqqggpc5xkbzhb0sue.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
You will see a " is ready to be published."&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkm78ehpqpri6fw0420zh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkm78ehpqpri6fw0420zh.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In a few minutes, your website will be ready to view!&lt;br&gt;
And that's it, 4 simple steps and then you have you first website deployed using gitub pages.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuwb6hf0iqz2qmxfikp9l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuwb6hf0iqz2qmxfikp9l.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
Connect with me on &lt;a href="https://www.linkedin.com/in/pranav-viswanathan-7976711b7/" rel="noopener noreferrer"&gt;Linkedin&lt;/a&gt;&lt;br&gt;
View my &lt;a href="https://github.com/PranavViswanathan" rel="noopener noreferrer"&gt;Github Page&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>opensource</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>ACT Light Not Working On Raspberry Pi, Fixed!</title>
      <dc:creator>Pranav Viswanathan</dc:creator>
      <pubDate>Mon, 29 Mar 2021 06:49:40 +0000</pubDate>
      <link>https://dev.to/pranavviswanathan/act-light-not-working-on-raspberry-pi-4cef</link>
      <guid>https://dev.to/pranavviswanathan/act-light-not-working-on-raspberry-pi-4cef</guid>
      <description>&lt;p&gt;I had bought a Raspberry Pi for a hobby of mine, and they are not exactly cheap. A couple of months after the Raspberry I got it, it would simply not boot up. The ACT light would not turn on. &lt;/p&gt;

&lt;p&gt;Here's how I fixed it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install the RaspberryPi Imager:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to &lt;a href="https://www.raspberrypi.org/software/"&gt;this link&lt;/a&gt; and download the required software.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eiiUg4Ne--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/39sevzi8qmtkeijejrwf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eiiUg4Ne--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/39sevzi8qmtkeijejrwf.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open the imager.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You will see a screen like the picture given below&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qFONyC4---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4b90w6p37j590yha95a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qFONyC4---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4b90w6p37j590yha95a.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to Choose OS -&amp;gt; Misc Utility images -&amp;gt; Bootloader -&amp;gt; SD Card.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Upload the software to an empty SD card.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Insert it into the RaspberryPi and then wait. It is important that it is connected to a monitor at this stage.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After around 5 minutes, a green screen will appear. Turn the Pi off and then insert a SD card with the desired OS into the PI.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Wait for a few minutes and the Raspberry Pi will boot up.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

&lt;p&gt;Follow me on:&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/pranav-viswanathan-7976711b7/"&gt;Linkedin&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/PranavViswanathan"&gt;Github&lt;/a&gt;&lt;/p&gt;

</description>
      <category>raspberrypi</category>
      <category>iot</category>
      <category>circuits</category>
    </item>
    <item>
      <title>Making a Whatsapp Spammer Using Selenium and Python.</title>
      <dc:creator>Pranav Viswanathan</dc:creator>
      <pubDate>Mon, 08 Mar 2021 04:14:24 +0000</pubDate>
      <link>https://dev.to/pranavviswanathan/making-a-whatsapp-spammer-using-selenium-and-python-1o68</link>
      <guid>https://dev.to/pranavviswanathan/making-a-whatsapp-spammer-using-selenium-and-python-1o68</guid>
      <description>&lt;p&gt;We all have had spamming wars on our group chats before, and they get tiring because of the sheer mundaneness of the task, resending a single message again and again. That's where automation steps in.&lt;/p&gt;

&lt;p&gt;Selenium is a web testing library for the robot framework. We're going to be using it today.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Install Selenium:&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Open a command line with admin privileges.&lt;/li&gt;
&lt;li&gt;Type in 'pip install selenium'
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install selenium
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install Chrome Webdriver:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Identify the version of chrome you are using&lt;/li&gt;
&lt;li&gt;Go to &lt;a href="https://sites.google.com/a/chromium.org/chromedriver/downloads" rel="noopener noreferrer"&gt;the chrome driver web page&lt;/a&gt;
and download the required driver.&lt;/li&gt;
&lt;li&gt;Here as I am using a Windows OS, I downloaded the Win32 zip file.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi8u1tkgyg1c1sghlnxf8.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;After it has been downloaded, extract the .exe file and put it in a drive and file of your choice (It's important to remember where you have saved it).&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Check Environment:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to a python editor of your choice (I use juypter notebook) and try importing selenium. If it runs without error, your setup is successful.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;The Code:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now copy down the following code:
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;selenium&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;webdriver&lt;/span&gt;
&lt;span class="n"&gt;PATH&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;C:\Program Files (x86)\chromedriver.exe&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="c1"&gt;# Location of the webdriver file
&lt;/span&gt;
&lt;span class="n"&gt;driver&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;webdriver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Chrome&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PATH&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;implicitly_wait&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;span class="n"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;https://web.whatsapp.com&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find_element_by_css_selector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;span[title=&lt;/span&gt;&lt;span class="sh"&gt;'"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;input&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Enter name to spam: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="sh"&gt;"'&lt;/span&gt;&lt;span class="s"&gt;]&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;click&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;inputString&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;input&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Enter message to send: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;while&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find_element_by_xpath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;//*[@id=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;main&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;]/footer/div[1]/div[2]/div/div[2]&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;send_keys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;inputString&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find_element_by_xpath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;//*[@id=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;main&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;]/footer/div[1]/div[3]/button&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;click&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;IMPORTANT NOTE&lt;/strong&gt; : Please change the PATH to where you have saved the .exe file.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Final Outcome:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Using your phone scan the QR code for WhatsApp web and then enter the name and the message you want to spam.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Spammer in Action:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Copy and paste the code from above into your editor ( Preferably Juypter Notebook).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run the code. You should be able to see something like the image below. You will also see that a new WhatsApp window opens up.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flrrvnaitq0pdm51cimeb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flrrvnaitq0pdm51cimeb.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;In the 'Enter the name to spam' Section', add the name of the contact or group you wish to spam.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the 'Enter the message to spam', enter the string you wish to send.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fng7z7e2qfz8gykvqdjvn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fng7z7e2qfz8gykvqdjvn.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After you hit enter, check the Whatsapp window, you will see an infinite number of messages being sent to the group/contact.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To stop hit Ctrl + C or click on the stop button if you're on Juypter Notebook.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The spammer works just as intended, and is extremely fast. It also provides a good eye-opener into the world of automation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Commonly Faced Errors:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sometimes, when importing selenium, you may get an import error. Check where selenium is installed and figure out where if the selenium installation and python path match. 
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpswh287qnpiluohpod0f.png" alt="image"&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Happy Coding!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Follow me on &lt;a href="https://www.linkedin.com/in/pranav-viswanathan-7976711b7/" rel="noopener noreferrer"&gt;Linkedin&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Follow me on &lt;a href="https://github.com/PranavViswanathan" rel="noopener noreferrer"&gt;Github&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>selenium</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
