Skip to content

Instantly share code, notes, and snippets.

Created May 21, 2014
What would you like to do?
#-*-coding: utf-8 -*-
import requests
def sendMsg(msg):
url_space_login = ''
url_login = ''
url_sendmsg = ''
parameter= { 'mobilenum':'yourmobile', 'password':'yourpassword'}
session = requests.Session(), data = parameter)
session.get(url_login), data = {'msg':msg})
print 'send success !'
if __name__ == '__main__':
sendMsg('python send fetion')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment