Beispiel #1
0
#coding: utf-8

from textnow import textnow_sms
import os

username = os.environ["TEXTNOW_USERNAME"]
password = os.environ["TEXTNOW_PASSWORD"]
numbers = os.environ["TEXTNOW_NUMBER"]
msg = os.environ["TEXTNOW_MSG"]
text = textnow_sms.Textnow(username, password, numbers, msg)

text.send_text()
Beispiel #2
0
#coding: utf-8

from textnow import textnow_sms
import os

usernames = os.environ["TEXTNOW_USERNAME"].split(',')
passwords = os.environ["TEXTNOW_PASSWORD"].split(',')
cookies = os.environ["TEXTNOW_COOKIES"].split('##,##')

if len(usernames) != len(passwords) :
  print(u"账号和密码个数不对应")
  quit()
elif len(usernames) != len(cookies) :
  print(u"账号和Cookie个数不对应")
  quit()
else:
  print(u"共有 %s 个账号,即将开始保号处理" % len(usernames))

print(u"共有 %s 个账号,即将开始保号处理" % len(cookies))

numbers = os.environ["TEXTNOW_NUMBER"]
msg = os.environ["TEXTNOW_MSG"]
for idx in range(0,len(usernames)):
  username = usernames[idx]
  password = passwords[idx]
  cookie = cookies[idx]
  text = textnow_sms.Textnow(numbers, msg, username, password, cookie)
  text.send_text()
  print("---第%s个账号处理完毕---" % (idx+1))

print("---Good Job! 所有账号处理完毕---")