Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guptarohit/smspy
A minimalistic python wrapper for way2sms, Send up-to 100 free SMS in India daily. :tada: :sparkles:
https://github.com/guptarohit/smspy
automation free-sms python scraper sms-api utility way2sms
Last synced: 22 days ago
JSON representation
A minimalistic python wrapper for way2sms, Send up-to 100 free SMS in India daily. :tada: :sparkles:
- Host: GitHub
- URL: https://github.com/guptarohit/smspy
- Owner: guptarohit
- License: bsd-3-clause
- Created: 2018-02-04T15:45:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T15:55:43.000Z (over 6 years ago)
- Last Synced: 2024-08-11T00:04:33.944Z (3 months ago)
- Topics: automation, free-sms, python, scraper, sms-api, utility, way2sms
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. -*-restructuredtext-*-
SMSpy
=====
A minimalistic python wrapper for sending free sms via website `way2sms `_... image:: https://img.shields.io/badge/Made%20with-Python-1f425f.svg
:target: https://www.python.org/.. image:: https://img.shields.io/pypi/v/smspy.svg
:target: https://pypi.python.org/pypi/smspy
.. image:: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fguptarohit%2Fsmspy.svg?type=shield
:target: https://app.fossa.io/projects/git%2Bgithub.com%2Fguptarohit%2Fsmspy?ref=badge_shield
:alt: FOSSA Status
.. image:: https://travis-ci.org/guptarohit/smspy.svg?branch=master
:target: https://travis-ci.org/guptarohit/smspy.. image:: https://img.shields.io/pypi/l/smspy.svg
:target: https://github.com/guptarohit/smspy/blob/master/LICENSE.. image:: https://img.shields.io/pypi/pyversions/smspy.svg
:target: https://pypi.python.org/pypi/smspyInstallation
------------::
$ pip install -U git+git://github.com/guptarohit/smspy.git
Usage
-----Send SMS
^^^^^^^^.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
w2s.send(MOBILE_NUMBER, MESSAGE)
w2s.logout()
Schedule SMS
^^^^^^^^^^^^.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
w2s.schedule(MOBILE_NUMBER, MESSAGE, DATE, TIME)
# DATE should be in format DD/MM/YYYY and TIME in 24h HH:mmw2s.logout()
Check History of sent messages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
headers, data = w2s.history(DATE)
# DATE should be in format DD/MM/YYYYprint(headers, data)
w2s.logout()
Check Scheduled messages
^^^^^^^^^^^^^^^^^^^^^^^^.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
headers, data = w2s.scheduled_messages(DATE)
# DATE should be in format DD/MM/YYYYprint(headers, data)
w2s.logout()
Check Quota left
^^^^^^^^^^^^^^^^.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
msgs_remaining=w2s.quota_left()
print(msgs_remaining)
w2s.logout()
Contributing
------------Feel free to make a pull request! :octocat:
License
-------.. image:: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fguptarohit%2Fsmspy.svg?type=large
:target: https://app.fossa.io/projects/git%2Bgithub.com%2Fguptarohit%2Fsmspy?ref=badge_large
:alt: FOSSA Status