WebWhatsapp-Wrapper

(โ˜… 2,077)

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]

  • .all-contributorsrc
  • .env
  • .gitignore
  • .travis.yml
  • docker-compose.yml
  • docker-entrypoint.sh
  • Dockerfile
  • ISSUE_TEMPLATE.md
  • LICENSE.txt
  • Makefile
  • MANIFEST.in
  • pylint.rc
  • README.md
  • requirements.txt
  • setup.py
  • tox.ini

# Installation Guide

1. Get the code
git clone https://github.com/mukulhase/WebWhatsapp-Wrapper

Downloads the entire project code from GitHub to your computer.

cd WebWhatsapp-Wrapper

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker network create selenium

Type this command into your terminal and run it.

docker run -d -p 4444:4444 -p 5900:5900 --name firefox --network selenium -v /dev/shm:/dev/shm selenium/standalone-firefox-debug:3.14.0-curium

Runs the built image as an actual container.

docker build -t webwhatsapi .

Builds a runnable image based on the Dockerfile.

docker run --network selenium -it -e SELENIUM='http://firefox:4444/wd/hub' -v $(pwd):/app webwhatsapi /bin/bash -c "pip install ./;pip list;python sample/remote.py"

Runs the built image as an actual container.

docker run --network selenium -it -e SELENIUM='http://firefox:4444/wd/hub' -v "%cd%:/app" webwhatsapi /bin/bash -c "pip install ./;pip list;python sample/remote.py"

Runs the built image as an actual container.

โœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

3. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
docker run --network selenium -it -e SELENIUM='http://firefox:4444/wd/hub' -v $(pwd):/app webwhatsapi /bin/bash -c "pip install ./;pip list;python sample/remote.py"

Runs the built image as an actual container.

docker run --network selenium -it -e SELENIUM='http://firefox:4444/wd/hub' -v "%cd%:/app" webwhatsapi /bin/bash -c "pip install ./;pip list;python sample/remote.py"

Runs the built image as an actual container.

docker run --network selenium -it -e SELENIUM='http://firefox:4444/wd/hub' -v "$(pwd):/app".ToLower() webwhatsapi /bin/bash -c "pip install ./;pip list;python sample/remote.py"

Runs the built image as an actual container.

โœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

4. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make

Compiles the code based on the generated build configuration to produce an executable.

โœ… If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation