Git Product home page Git Product logo

wa_bot's Introduction

WHATSAPP-BOT

to give weather info by "\weather cityname" in the chat like:


\weather delhi

Place: delhi
Temperature: 21°C
Condition: Fog

Install required libraries

pip install selenium

pip install requests

pip install bs4


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 whatsapp.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 (if you want this also to automate then edit and read line 18-20 code

now it will start scanning the last message of current chat and if it found a message start with \weather then it will pick the message and search of whatever given after \weather in google and then does web scraping of the weather result of the given place and then automatically write it in the message box and automatically send, if found! otherwise it will send "place is not found!"


wa_bot's People

Contributors

shubhamrawat5 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.