Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import requests
LOGIN_URL = 'https://www.vodafone.gr/portal/client/idm/login!login.action'
SMS_URL = 'http://tools.vodafone.gr/gr2/cgi-bin/office.pl?serv=web2sms'
# Fill in your My Vodafone username nand password
USERNAME = None
PASSWORD = None
PHONE = '69xxxxxxxx'
MESSAGE = 'This is a test'
data = {
'loginGoTo': '',
'username': USERNAME,
'password': PASSWORD,
}
session = requests.Session()
session.post(LOGIN_URL, data)
data = {
'action': 'send',
'ad_target': PHONE,
'message': MESSAGE,
'name': 'xxxxxxxx',
'serv': 'web2sms',
}
session.post(SMS_URL, data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.