-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marianna Moawad
committed
Jun 13, 2020
0 parents
commit 22bcaff
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Instructions and Inspiration: https://pypi.org/project/py-iMessage/ | ||
|
||
1. Homebrew -> https://brew.sh/ | ||
|
||
2. brew install python3 | ||
|
||
3. pip install py-imessage | ||
|
||
4. python3 textApp.py | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name ,number | ||
Marianna,8438551417 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
† Peace and Grace † | ||
English bible study will continue tonight with 1 Sam 13! Join us as we cover the major turning point in Saul’s life that led to his downfall. We will begin at 5:00PM. | ||
Zoom link will be sent 15 min prior. God willing, see you all there :-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Marianna Moawad - 5/13/20 | ||
# Instructions and Inspiration: https://pypi.org/project/py-iMessage/ | ||
|
||
from py_imessage import imessage | ||
import csv | ||
|
||
contactList = {} | ||
|
||
# opening txt file of message | ||
f = open("message.txt", "r") | ||
message = f.read() | ||
print("Message is -> " + message) | ||
|
||
# opening csv file with contacts | ||
with open('contacts.csv', mode='r') as csv_file: | ||
csv_reader = csv.reader(csv_file) | ||
# ignore first line | ||
next(csv_reader) | ||
for row in csv_reader: | ||
contactList[row[0]] = row[1] | ||
|
||
# messaging each person | ||
for person in contactList.keys(): | ||
print("Sending a message to " + person) | ||
# message = "Hey " + person + " How are you?" | ||
phone = contactList[person] | ||
guid = imessage.send(phone, message) | ||
|
||
|