{"id":14987081,"url":"https://github.com/sspeedy99/whatsapp-cli","last_synced_at":"2025-04-11T23:21:54.637Z","repository":{"id":100093358,"uuid":"189889357","full_name":"sspeedy99/whatsapp-cli","owner":"sspeedy99","description":"Command line interface for whatsapp web for terminal.","archived":false,"fork":false,"pushed_at":"2019-06-11T07:43:50.000Z","size":4963,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T19:11:56.522Z","etag":null,"topics":["cli","selenium-webdriver","whatsapp-chat","whatsapp-web"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sspeedy99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-02T19:58:37.000Z","updated_at":"2024-06-07T23:28:54.000Z","dependencies_parsed_at":"2023-03-16T21:45:12.736Z","dependency_job_id":null,"html_url":"https://github.com/sspeedy99/whatsapp-cli","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"f3bf14054153018f904e40364ddc73f697abe486"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sspeedy99%2Fwhatsapp-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sspeedy99%2Fwhatsapp-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sspeedy99%2Fwhatsapp-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sspeedy99%2Fwhatsapp-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sspeedy99","download_url":"https://codeload.github.com/sspeedy99/whatsapp-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493048,"owners_count":21113190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","selenium-webdriver","whatsapp-chat","whatsapp-web"],"created_at":"2024-09-24T14:14:03.821Z","updated_at":"2025-04-11T23:21:54.606Z","avatar_url":"https://github.com/sspeedy99.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whatsapp-cli\n\nCommand line interface of whatsapp web in the terminal (Unofficial). \u003c/br\u003e\nThis works with selenium-webdriver to login to whatsapp web interface and search the reciever name.\n\n### Features\n\n  - Send and receive messages to and from any contact/group in your WhatsApp *from command line*.\n  - Switch between different chats *from command line*.\n\n## Requirements\n\n- [Python 3](https://www.python.org/downloads) Tested with 3.4.3, 3.6.1. **Python 2 will not work**\n- [selenium](http://selenium-python.readthedocs.io/installation.html) Tested with 2.53.6, 3.4.2\n- [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/downloads) Tested with 2.24, 2.29\n- [Chrome Web Browser](https://www.google.com/chrome/browser/desktop) compatible with the ChromeDriver version you downloaded. (Eg. ChromeDriver 2.29 supports Chrome v56-58) You can get this info from the ChromeDriver download page.\n\n## Installation\n\n1.  Clone this repository. `$ git clone https://github.com/sspeedy/whatsapp-cli.git` \n2.  Install virtualenv `$ sudo pip3 install virtualenv`\n3.  Create the virtual environment `$ virtualenv whatsapp`\n4.  Activate the virtual environment `$ source whatsapp/bin/activate`\n5.  Install selenium. `$ sudo pip3 install selenium`\n6.  Download and extract [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/downloads).zip\n7.  Put path to ChromeDriver executable in the line `'chromedriver_path': '/path/to/chromedriver'` in `chat.py` file of this repository.\n\n## Related Repository\nIn order to not reinvent the wheel, some of the stuff and generic ideas are taken from here. \u003c/br\u003e\n[WhatsApp Bot](https://github.com/harshirtsidhwa/WhatsApp-bot-selenium)\n\n## Usage\n\n#### Start Chatting  \n\n`$ python chat.py \u003cname\u003e`\n  \n1.  Replace `\u003cname\u003e` with the name of a contact or a group in your WhatsApp. Even partial names will work.\n2.  Scan the QR code displayed on screen from the WhatsApp mobile app.\n3.  Press `y` in console after WhatsApp Web is done loading, to connect your phone.\n\n\n#### Stop sending messages and only receive messages\n\n`stopsending`\n\n1.  Type it while `chat.py` is running.\n1.  This will allow you to only see incoming messages. Your messages won't be sent. To send messages again, restart the script.\n\n#### Configuration\n\nIn `chat.py` file:\n\n```\nconfig = {\n    'chromedriver_path': '/path/to/chromedriver',\n    'get_msg_interval': 5,  # Time (seconds). Recommended value: 5\n    'colors': True,  # True/False. True prints colorful msgs in console\n    ...\n}\n```\n\n#### Exit\n\nPress `Ctrl+C` two times.\n\n### Updates\nTo add Recent chats option. \u003c/br\u003e\nAbility to see all the unread messages \u003c/br\u003e\nAutomate the activate using shell scripts \u003c/br\u003e\n\n\n\n### License \n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsspeedy99%2Fwhatsapp-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsspeedy99%2Fwhatsapp-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsspeedy99%2Fwhatsapp-cli/lists"}