Display all content with Invoke-WebRequest

后端 未结 3 906
抹茶落季
抹茶落季 2021-02-05 01:54

So I decided to start using PowerShell rather than Command Prompt. And I want to run curl. Very different output then discover that curl is an alias to

3条回答
  •  伪装坚强ぢ
    2021-02-05 02:20

    Something like this?

    $res=Invoke-WebRequest "https://www.google.fr/" 
    
    
    #for look html of body
    $res.ParsedHtml.body.innerHTML
    
    #for look text of body
    $res.ParsedHtml.body.innerText
    

提交回复
热议问题