Python library whatsplay offers stable WhatsApp automation without Selenium
A developer has released whatsplay, a Python library designed to automate WhatsApp Web without relying on Selenium and its fragile XPath selectors. The tool is built on top of Playwright and uses attribute-based DOM selectors, which are more resilient to WhatsApp interface updates. It supports features such as sending messages, monitoring incoming messages, and persistent QR-based login sessions. A practical use case demonstrated in the article involves sending automated alerts based on live Bitcoin price data fetched from an external API. The library is publicly available on GitHub and can be installed via pip, and comes with 34 tests covering message parsing, timestamps, and voice messages.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in