實現:通過splinter.browser模擬瀏覽器登陸和操作(搶票過程中,瀏覽器不可關閉)
搶票成功,會進行相應的通知
代碼GitHub地址(master分支)>>>https://github.com/yxd179/robot_12306
Python3.7版本>>>
獲取城市cookie>>>
Python運行環境:python3.7
主要涉及到的庫:ConfigParser、Browser、HINEText、sys、httplib2、urllib、smtplib、sleep、Email
若未安裝請使用pip3 instatll進行安裝,例如:pip3 install Browser
Python Version已分享至百度雲。
IDE:PyCharm版本>>>