Python On WhatsApp
Run your python codes on whatsapp along with talking to a chatbot
This is a small python project to run python on whatsapp. and i created this project for HackCBS 4.0 hackathon organized by HackerEarth. I am thinking to turn it to a complete chatbot service for python soon.
A working bot preview is here : pythonWA
Features
- Run your python code instantly
- Install packages from pip
- A chatbot support so that you don't feel lonely
How to Download
Clone this repository or download this project from here Download PythonWA Source Code
Requirements
-
A Twilio account. If you are new to Twilio create a free account now
-
In Addition, you will be required to download ngrok while running this bot on localhost. Download it from here
-
All the required packages are written inside the requirements.txt file.
Use the package manager pip to install them by running this command :-
pip install -r requirements.txt
Setup
This is a 7 step setup process.\
-
download source code
-
install packages from requirements.txt by pip install requirements.txt
-
download ngrok and extract exe, and make a account on ngrok website
-
create a twilio account for free
-
run main.py in your terminal
-
run ngrok by double clicking ngrok.exe and execute this command > ngrok http 5000
-
copy the ngrok forwarding link and paste it in twilio sandbox
now write any code or query on whatsapp and send and done
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.