Parsnip is a basic python interface to allow the sending of web texts via the main 4 Irish mobile operators websites. It is influenced by/based on Cabbage http://cabbagetexter.com/.
MIT License
WARNING This code is no longer maintained and is unlikely to work due to updates on the mobile providers webtexting applications
Parsnip
is a basic python interface to allow the sending of web texts via the main 4 Irish mobile operators websites. It is influenced by Cabbage (a popular php
webtexting implementation).
Either pip install python-parsnip
or get the latest code via GitHub with pip install -e git+https://github.com/timmyomahony/python-parsnip.git#egg=python-parsnip
import parsnip
texter = parsnip.get_webtexter("Meteor", "0851111111", "1234")
texter.login()
texter.send("Heyo", ["0866666666", "0877777777", "0863333333"])
print texter.get_remaining_webtexts()
255
texter.logout()
get_webtexter(operator, phone_number, online_pin)
: is a factory method which returns an instance of Webtexter
.login()
: login to remote operator sitelogout()
: clear cookies and perform logout on remote operator sitesend(message, recipients)
: sends a web text to the provided recipients, where recipient
is either a comma separated string of phone numbers, or a list of phone numbers.get_remaining_webtexts
: returns an integer