Windows下使用vbs脚本完成网页登录
新建file.vbs

 

Url="xxx"
set wshshell=CreateObject("wscript.shell")
wshshell.Run"""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe""" & Url
wscript.sleep 2000
wscript.sleep 2000
wshshell.sendkeys "{TAB}"
wshshell.sendkeys "username"
wscript.sleep 2000
wshshell.sendkeys "{TAB}"
wshshell.sendkeys "password"
wshshell.sendkeys "{ENTER}"
wscript.quit

如上即可完成网页的登录,适用于无法安装python环境,但是需要一点自动化操作的过程。