Automatically open up google's Messages for web from the terminal to send/receive texts from your computer using Selenium and Firefox.
The only requirements for this project are Selenium. [Official site] [Github] [Python Package]
Note: You must change line 11 in the "messages.py" file to the location of your geckodriver executable. It is most likely (definitely?) located/symlinked to "/usr/local/bin/geckodriver".
After running "python messages.py" from the directory this is saved in, the next steps to connect are:
- Selecting "messages for web" in the 3-dot dropdown menu at the top right of the Google Messages app
- Select "QR code scanner"
- Scan QR code shown in the browser window opened by the selenium webdriver.
Note: After running this program for some time I realized it wasn't practical to use selenium in this scenario. It seems to take up unnecessary resources, and the same thing can be done using other means. For example running a script with the 3rd party python package PyAutoGui.