henristr/whatsapp-code-automator — explained in plain English
Analysis updated 2026-05-18
Automatically tap the regenerate button in WhatsApp until a specific target code appears.
Log every attempt with the code seen and whether it matched.
Adapt the script to a device set to a different language by editing one line of button text.
| henristr/whatsapp-code-automator | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | moderate | moderate | moderate |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an Android device connected via ADB, WhatsApp installed, and editing hardcoded button text to match the device's language.
WhatsApp Code Automator is a small Python script that automates a repetitive task on an Android phone running WhatsApp. It repeatedly presses a button that generates a new short code inside the WhatsApp app, reads the code that appears on screen, and compares it against a code you have set as the target. It keeps doing this, attempt after attempt, until the code it sees matches the one you are looking for or it hits a maximum number of tries. The script controls the phone through a tool called uiautomator2, which lets Python code tap buttons and read text on an Android screen as if a person were doing it by hand. Because of this, the phone needs to be connected over ADB, the Android Debug Bridge, and WhatsApp needs to already be open on the relevant screen. There is no server component and no cloud service involved, everything runs locally against the connected device. A key detail is that the button text the script looks for is written in German by default, since that is the language the original author's phone was set to. Anyone using this on a device set to English, Spanish, French, or Portuguese has to edit one line in the code and swap in the matching button text for their language, since the script only works if it can find that exact phrase on screen. Three settings control its behavior: the target code to watch for, the maximum number of attempts before giving up, and a short delay between each attempt. While it runs, the script prints its progress in the terminal, showing each attempt and the code found, and it reports clearly when it either succeeds or runs out of attempts. The project is a single file script rather than a full application, aimed at someone comfortable running Python from the command line and connecting a phone through ADB. It is released under the MIT license.
A Python script that automates tapping a code regenerate button in WhatsApp on Android and compares each new code against a target value.
Mainly Python. The stack also includes Python, uiautomator2, ADB.
MIT license, use freely for any purpose including commercial use as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.