Git Product home page Git Product logo

bulk-sms's Introduction

Simple Twilio bulk SMS client (in Python)

Description

This script will send mass SMS out to many people using the Twilio API.

Your contacts must be specified in a CSV file, where the first column is the phone number.

The message is read from a message file and sent to all contacts.

Contacts will not recieve the message twice as the script will remove duplicate numbers automatically.

Finally, a cost estimate is provided and the user is prompted to confirm (Y/n) before sending commences.

Defaults and Variables

Message file: message.txt CSV numbers file: participants.csv

You will also need to fill in your Twilio account SID, auth_token, and 'from' number.

Assistance and contributions

Issues guide:

  1. When asking for help, please include the complete error message, including the line number, and information about the troubleshooting procedures you've already tried.
  2. Ensure you remove any personally-identifying information from issues. This includes phone numbers and individuals' names.
  3. This code is provided as-is. Feature requests are great, but it is expected that you provide the code.

Unfortunately, issues which do not follow this guide will be closed. Thank you.

Pull requests are awesome and really help. If you have code to contribute, raise a pull request.

Licence

Public domain, 2015

Please use responsibly :)

bulk-sms's People

Contributors

rafidini avatar sjmf avatar wagnerbenh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bulk-sms's Issues

twilio.base.exceptions.TwilioRestException [Issue via email]

The following issue was received via email. Please note the preferred way to receive issues is via GitHub.

Traceback (most recent call last):
File "C:\PycharmP\Send BulkSms\bulk-sms-master\sms.py", line 53, in <module>
    message = client.messages.create(to=num, from_=from_num, body=sms)
File "C:\Python39\lib\site-packages\twilio\rest\api\v2010\account\message\__init__.py", line 88, in create
    payload = self._version.create(method='POST', uri=self._uri, data=data, )
File "C:\Python39\lib\site-packages\twilio\base\version.py", line 205, in create
    raise self.exception(method, uri, response, 'Unable to create record')
twilio.base.exceptions.TwilioRestException: HTTP 404 error: Unable to create record: 
The requested resource /2010-04-01/Accounts/<???????????????????>/Messages.json was not found

Is scheduling send-time possible?

This looks like a really helpful repo, but I also need to specify the time when each SMS needs to be sent. Is this doable with the code provided in the repo? Is it else possible in twilio with python code? Are there alternatives to twilio that offer easy SMS scheduling? Tnx

Add sleep_time

Hi, is it possible to add sleep_time between every message?

does not work

it doesnt work. I run the command but it just tells me an error code after I want to confirm the send.

Skip invalid phone numbers

The program stops when it finds an invalid phone number. It would be better if it keeps going and then just share a list of invalid numbers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.