如何使用Python 3通过Way2SMS发送免费短信?
使用Python 3借助Way2SMS发送免费短信
我一直在琢磨用Way2SMS发送免费短信,终于找到一个适配Python 3的项目,已经把项目文件保存为way2sms.py了,代码内容如下:
import requests from bs4 import BeautifulSoup class sms: def __init__(self,username,password): ''' Takes username and password as parameters for constructors and try to log in ''' self.url='http://site24.way2sms.com/Login1.action?' self.cred={'username': username, 'password': password} self.s=requests.Session() # Session...
内容的提问来源于stack exchange,提问作者YSR
相关产品推荐
相关产品推荐

