tithiwa
tithiwa copied to clipboard
Automate Web WhatsApp with selenium in python.
Forgiven example it should return [75, 74, 72, 25] ![chrome_ffpztupAX2](https://user-images.githubusercontent.com/30471072/97091877-d3bb4580-165c-11eb-96be-de77d6420a7d.png)
It is happing most probably due to our script getting the options button from the previous chat and then the next chat loaded but we are trying to click on...
To reproduce join Multi-device beta and try to save session and restore session it is failing to restore session ```python from tithiwa import * tithiwabot = Tithiwa() tithiwabot.generate_session("01") tithiwabot1 =...
Check CSS selectors in [constants.py](https://github.com/Tithibots/tithiwa/blob/main/tithiwa/constants.py) if it is not working as expected then fix it for example `CHATROOM__OPTIONS` and `MAIN_MENU_OPTIONS__MENU_ICON` which is equal to `[data-testid="menu"]` is not working ![image](https://user-images.githubusercontent.com/30471072/138816371-8b7ca9ad-025c-4973-b43c-ac46ee17bd97.png)
Reference link to [Style Guide for Python Cod](https://www.python.org/dev/peps/pep-0008/) I suggest using [multi-line-and-multi-cursor-editing](https://www.meziantou.net/visual-studio-tips-and-tricks-multi-line-and-multi-cursor-editing.htm)
Create a new class say `AutoReplay` Reply some given messages to some particular messages. for example reply `Hello` if someone message `Hello`, `hi` ..etc
For now, just scrap text only but we can also scrap images, audio or videos, or stickers.
Useful `scrape_all_contacts()`: get a list of all contacts Just for Fun: use `scrape_all_contacts()` and `send_message_to_number()` for following functions https://github.com/Tithibots/tithiwa/blob/7cef0e13b6ab6f8050060bb3cbaad0f59f79c19e/tithiwa/contact.py#L29 `send_message_containing_url_to_their_own_chatroom(number)`: `send_message_containing_url_to_their_own_chatroom_to_all_contacts()`
1. How Web-WhatsApp communicates with our mobile? it seems like it creates sockets in javascript and sends requests to our mobile. 2. Can we manually replicate those communications between Web-WhatsApp...