Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Marianna Moawad committed Jun 13, 2020
0 parents commit 22bcaff
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions README
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



2 changes: 2 additions & 0 deletions contacts.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name ,number
Marianna,8438551417
3 changes: 3 additions & 0 deletions message.txt
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 :-)
29 changes: 29 additions & 0 deletions textApp.py
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)


0 comments on commit 22bcaff

Please sign in to comment.