Commits

gao shuai committed 6d54e1e Draft

done

  • Participants
  • Parent commits d6b2a92

Comments (0)

Files changed (1)

cmcc_login_wlan_v.py

 import os
 import datetime,os
 CWD=os.getcwd()
-username = '13829107673'
-passwd = '252806'
+
+_f=file(os.path.join(CWD,"config.txt"),"r")
+CONFIG=_f.readlines()
+_f.close()
+username=CONFIG[0].strip()
+passwd=CONFIG[1].strip()
+
 def w(name):
 	_f=file(os.path.join(CWD,name+".html"),"w+")
 	_f.write(driver.page_source.encode("utf8"))