This repo goes along with this YouTube video. Copy and paste song lyrics, movie scripts, etc into the lyrics file. Add your friend's phone number to the num file, run, and watch as it sends texts one by one, for every word!
- works with the iMessage client on Mac (feel free to substitute an SMS API)
- add any text to lyrics.txt
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Watch this Youtube Video first!
- Complete the Prerequisites and Installing sections below
- Add a phone number (as a string) to
num.py
- Run the
send.py
file with Python - Improve this repo, and DM me on Discord, TikTok, or Instagram, and I'll feature you in a future video!
Install Python3
Install Pip and virtualenv
Install Pipenv
Give terminal "full disk access" on Mac for py-imessage to work:
System Preferences -> Security & Privacy -> Privacy -> Full Disk Access -> + -> Click Terminal
You'll receive this error once you run the final script if you don't:
sqlite3.OperationalError: unable to open database file
In the project directory:
Create virtual environment:
On macOS and Linux:
python3 -m venv env
On Windows:
py -m venv env
Activate virtual environment:
On macOS and Linux:
source env/bin/activate
On Windows:
.\env\Scripts\activate
Install packages via Pipfile
pipenv install
- Python3 - A programming language that lets you work more quickly and integrate your systems more effectively.
- py-iMessage - A library to send iMessages from your Mac computer (it does not work on Windows/Linux)
Matt Upham
- YouTube - @mattupham
- TikTok - @mattupham
- Instagram - @mattupham
- Github - @mattupham
- Discord - community