Package: tithiwa
tithiwa - Web WhatsApp botAutomate Web WhatsApp with selenium.Check Headless tithiwachallengeFull explained Videos on that project are coming soon. Stay tune with our youtube channelNoobie TechsTable of contentsContribution and creativity pointsAutomation ideasInstallationContribution and creativity pointsSelenium automation creativity pointsDebuggingExampleWe can create breakpoints to pause execution at any time then we can try to run some python code in the console to find a way to do something. That helps to develop efficiently.CTRL + Left mouse clickExampleWe can see the definitions or references or usages of any function or variable in our IDE like PyCharm. That helps to understand the existing code base efficiently.Inspect elements and consoleExampleIn chrome, we can inspect HTML elements and run javascript code inside console. That helps up to find better selectors and automations steps efficiently.NOTE: By pressing UP key we can see the history about what codes we had run during Python debugging and inside Chrome's console.NOTE: If you are running javascript code inside selenium chromedriver's console then it willNOTkeep history.Good luck :)Automation ideasTodo: Clear chats of all groupsTodo: Clear chats of all contactsTodo: Clear all chats both groups and contactsTodo: Auto-reply given messages to some given messagesTodo: Scrap chat as textTodo: Track online status of given numberTodo: Send given message to given contacts at some given time i.e schedule messagesTodo: Join group by invite linkTodo: Change Web WhatsApp's settingsTodo: Scape all contacts and send message containing URL to their own chatroomTodo: Get currently opened Web WhatsApp's mobile numberTodo: Open chat to the same number as currently opened Web WhatsApp's numberTodo: Join multiple groups by invite linksTodo: Delete chats of all exited groupsTodo: Delete chats of all contactsTodo: Get number from contact nameTodo: Get number of views to my statusTodo: Get my nameTodo: Get my aboutfromtithiwaimportTithiwa# Create bottithiwabot=Tithiwa()## Generate sessions and open sessions âœ”tithiwabot.generate_session("filename")tithiwabot.open_session("filename")## Open chatroom and send message âœ”tithiwabot.open_chat_to("919592140593")tithiwabot.open_chat_to_number_using_url("919592140593")# wa.me/919592140593tithiwabot.send_message_to("919592140593","Hello, from Tithiwa")## Get number from contact name âœ”print(tithiwabot.get_mobile_number_of("Contact1"))## Send a message to multiple chats âœ”tithiwabot.send_message_to_multiple_chats("hello",["contact1","contact2","Group1"])## Send a message to multiple chats at given time âœ”tithiwabot.send_message_at_time_to(["contact1","contact2","Group1"],"hi, from tithiwa at 9:36PM","21:36:00")## Create new WhatsApp group âœ”tithiwabot.create_group("GroupName",["contact1","contact2","contact2"])## Scrape members list from group âœ”print(tithiwabot.scrape_members_from_group("GroupName"))# ["contact1", "contact2", "contact2"]## Make given contacts as group admins of given group âœ”tithiwabot.make_group_admins("GroupName",["contact1","contact2"])## Remove given contacts from given group âœ”tithiwabot.remove_members_from_group("GroupName",["contact1","contact2"])## Send a message to a group with mentioning all group members âœ”tithiwabot.send_message_with_mention_all_to_group("GroupName","Hello All")## Exit from group âœ”tithiwabot.exit_from_group("GroupName1")## Exit from all groups âœ”tithiwabot.exit_from_all_groups()## Exit from given groups âœ”tithiwabot.exit_from_groups(["GroupName1","GroupName2"])InstallationNOTE - pip contains older version i.e clone repo to usepip install tithiwa