Created
February 24, 2018 11:44
-
-
Save glogiotatidis/ec8f90b4f5b38e40fadbd3b56318a019 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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