VBSCRIPT Instagram自动登录失败
尝试创建一个简单的脚本自动登录到我的instagram帐户。提交表单后(以编程方式单击登录按钮),用户名和密码字段将清除,登录失败。有办法吗?提前谢谢VBSCRIPT Instagram自动登录失败,vbscript,automation,instagram,form-submit,autologin,Vbscript,Automation,Instagram,Form Submit,Autologin,尝试创建一个简单的脚本自动登录到我的instagram帐户。提交表单后(以编程方式单击登录按钮),用户名和密码字段将清除,登录失败。有办法吗?提前谢谢 Set IE = CreateObject("internetexplorer.application") 'Login IE.Visible = true IE.Navigate "https://www.instagram.com/accounts/login/" Do While IE.Busy Or IE.ReadyState <
Set IE = CreateObject("internetexplorer.application")
'Login
IE.Visible = true
IE.Navigate "https://www.instagram.com/accounts/login/"
Do While IE.Busy Or IE.ReadyState <> 4: WScript.Sleep 100: Loop
for each a in ie.document.getelementsbytagname("input")
if a.name = "username" then
a.value = "myusername" '<=== Enter user name here
end if
next
for each b in ie.document.getelementsbytagname("input")
if b.name = "password" then
b.value = "my password" '<===== Enter password here
end if
next
wscript.sleep 1000
for each btn in ie.document.getelementsbytagname("button")
if btn.innertext = "Log in" or btn.getAttribute("class") = "_qv64e _gexxb _4tgw8 _njrw0" then
btn.click
end if
next
'IE.document.Forms(0).Submit
Set IE=CreateObject(“internetexplorer.application”)
'登录
可见=真实
即“导航”https://www.instagram.com/accounts/login/"
在IE.Busy或IE.ReadyState 4:WScript.Sleep 100:Loop时执行
对于ie.document.getelementsbytagname(“输入”)中的每个a
如果a.name=“username”,则
a、 value=“myusername”'我还尝试使用.focus和.blur,但blur也会擦除值项。我还尝试使用.focus和.blur,但blur也会擦除值项。