Skip to content

Instantly share code, notes, and snippets.

@glogiotatidis
Created February 24, 2018 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glogiotatidis/ec8f90b4f5b38e40fadbd3b56318a019 to your computer and use it in GitHub Desktop.
Save glogiotatidis/ec8f90b4f5b38e40fadbd3b56318a019 to your computer and use it in GitHub Desktop.
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