Advertisement
Guest User

Untitled

a guest
Mar 14th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import sys
  4.  
  5. from googlevoice import Voice
  6. from googlevoice.util import input
  7.  
  8. sys.dont_write_bytecode = True
  9. username=str(sys.argv[1]).strip()
  10. password=str(sys.argv[2]).strip()
  11. phone_numbers=str(sys.argv[3]).strip()
  12. the_message=str(sys.argv[4]).strip()
  13.  
  14. print "user name:" , username
  15. print "password:" , password
  16. print "phone_numbers:" , phone_numbers
  17. print "the_message:" , the_message
  18.  
  19. voice = Voice()
  20. voice.login(username, password)
  21.  
  22. def send_mass_text():
  23. with open(phone_numbers, 'r') as inF:
  24. for this_phone_number in inF:
  25. voice.send_sms(this_phone_number, the_message)
  26.  
  27. send_mass_text ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement