Tithibots / tithiwa

Automate Web WhatsApp with selenium in python.
MIT License
24 stars 22 forks source link

Make scrape_all_contacts(), send_message_containing_url_to_their_own_chatroom() and send_message_containing_url_to_their_own_chatroom_to_all_contacts() #42

Open NavpreetDevpuri opened 3 years ago

NavpreetDevpuri commented 3 years ago

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()

NavpreetDevpuri commented 3 years ago

https://github.com/Tithibots/tithiwa/blob/7cef0e13b6ab6f8050060bb3cbaad0f59f79c19e/tithiwa/group.py#L113-L130

That's how we can go through all chats And do similar things to go through all contacts.

NavpreetDevpuri commented 3 years ago

HINT: When we open contacts it sends requests containing mobile numbers. ShareX_KxVxOnDYf0