Skip to content

Commit

Permalink
'update'
Browse files Browse the repository at this point in the history
  • Loading branch information
gxcuizy committed Nov 26, 2018
1 parent e7fd8ef commit 6149522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 12306抢票/new_qiangpiao.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(self, passengers, from_time, from_station, to_station, number, seat
self.init_my_url = 'https://kyfw.12306.cn/otn/view/index.html'
self.ticket_url = 'https://kyfw.12306.cn/otn/leftTicket/init?linktypeid=dc'
# 浏览器驱动信息,驱动下载页:https://sites.google.com/a/chromium.org/chromedriver/downloads
self.driver_name = 'firefox'
self.driver_name = 'chrome'
self.driver = Browser(driver_name=self.driver_name)

def do_login(self):
Expand Down Expand Up @@ -196,7 +196,7 @@ def send_mail(self, receiver_address, content):
host = 'smtp.163.com'
port = 25
sender = '[email protected]' # 你的发件邮箱号码
pwd = 'CUIzy9118' # 不是登陆密码,是客户端授权密码
pwd = '********' # 不是登陆密码,是客户端授权密码
# 发件信息
receiver = receiver_address
body = '<h2>温馨提醒:</h2><p>' + content + '</p>'
Expand Down

0 comments on commit 6149522

Please sign in to comment.