Messages for web bot
1.0.0
使用 Google Messages 網頁版自動發送簡訊
Python Selenium 腳本,向儲存在 CSV 檔案中的聯絡人發送大量簡訊
git clone https://github.com/rgomezjnr/messages-for-web-bot.git
pip install -r requirements.txt
python messages-for-web-bot.py contacts.csv "Hey {}, want to meetup today?"
usage: messages-for-web-bot [-h] [-n] [-d DELAY] [-s START_RANGE]
[-e END_RANGE] [-r RANGE RANGE] [-v]
CONTACTS MESSAGE
Automatically send text messages using Google Messages for web
positional arguments:
CONTACTS CSV file containing contacts to send text messages to
MESSAGE Content of text message to send to contacts, double-
quoted
optional arguments:
-h, --help show this help message and exit
-n, --dry_run Run script without actually sending text messages
-d DELAY, --delay DELAY
Time delay value between automated browser actions, in
seconds
-s START_RANGE, --start_range START_RANGE
Starting row entry in CONTACTS CSV file to send text
messages to, inclusive
-e END_RANGE, --end_range END_RANGE
Ending row entry in CONTACTS CSV file to send text
messages to, inclusive
-r RANGE RANGE, --range RANGE RANGE
Specify range (row entries) in CONTACTS CSV file to
send text messages to
-v, --version show program's version number and exit
By default, MESSAGE will be sent to all contacts in CONTACTS CSV file
Add curly brackets {} in MESSAGE to substitute contact name in MESSAGE
Examples
Send text message to all contacts in contacts.csv and substitute contact name in message:
python messages-for-web-bot.py contacts.csv "Hey {}, want to play ball this Friday at 6?"
Send text message to first 10 contacts (row entries 2-11) in contacts.csv:
python messages-for-web-bot.py --end_range 11 contacts.csv "Hello"
Send text message to 12-20 contact entries in contacts.csv:
python messages-for-web-bot.py --range 12 20 contacts.csv "Hello"
Send text message to remaining contacts after row 20 in contacts.csv:
python messages-for-web-bot.py --start_range 21 contacts.csv "Hello"
如果您發現問題或有任何回饋,請在 GitHub 上提交問題。
如果您想透過以下方式表達您的支持捐款:
小羅伯特·戈麥斯
https://github.com/rgomezjnr/Messages-for-web-bot
麻省理工學院