Git Product home page Git Product logo

wa_bot_code_sender's Introduction

WA_BOT_CODE_SENDER

Whatsapp bot to give programming codes


Command:-

#gfg ProgramName


example:-

#gfg count set bits

// C++ program to Count set 
// bits in an integer 
#include <bits/stdc++.h> 
using namespace std; 
  
/* Function to get no of set bits in binary 
representation of positive integer n */
unsigned int countSetBits(unsigned int n) 
{ 
    unsigned int count = 0; 
    while (n) { 
        count += n & 1; 
        n >>= 1; 
    } 
    return count; 
} 
  
/* Program to test function countSetBits */
int main() 
{ 
    int i = 9; 
    cout << countSetBits(i); 
    return 0; 
} 

Install required libraries

pip install selenium

pip install requests

pip install bs4

pip install keyboard


Download web driver of your browser

[For chrome browser] https://chromedriver.storage.googleapis.com/86.0.4240.22/chromedriver_win32.zip

Now set the PATH of this chrome web driver in environment variables (if did then comment line 7 and remove PATH from parameter in line 8

or edit the code, in line 7: PATH="paste here your chrome webdriver location"


READY TO USE!

Now run the WA_GFGcode_sender.py script, automatically new chrome will open and whatsapp web will get open, now scan the QR code !

chat will be loaded then click on a chat manually

now it will start scanning the last message of current chat and if it found a message start with #gfg then it will pick the message and search of whatever given after #gfg in google and then get first top link and then send request on that link and then does web scraping and extract the code result of the given program and then automatically write it in the message box and automatically send, if found! otherwise it will print "error!"


wa_bot_code_sender's People

Contributors

shubhamrawat5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.