Powershell 登录谷歌(网页抓取)

时间:2021-06-16 18:33:39

标签: powershell authentication

我目前正在寻找一种使用 Powershell 登录 google 的方法,但我绑定的所有内容都不起作用

这是我当前的代码

$site = Invoke-WebRequest -uri 'https://accounts.google.com/_/lookup/accountlookup?hl=de&_reqid=572947&rt=j' -Method post -Body @{identifier = "MyEmail"; password = "MyPassword"}

响应是:

    Invoke-WebRequest:
Line |
   2 |  $site = Invoke-WebRequest -uri 'https://accounts.google.com/_/lookup/ …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | )]}'
[[["er",null,null,null,null,403,null,null,null,7]
,["e",2,null,null,80]
]]

我尝试了很多,但仍然无法弄清楚为什么它不起作用???

0 个答案:

没有答案