我如何使用Invoke-WebRequest
在博客网站上发布迄今为止的所有博客?谁能帮我吗?
我做了所有这些事情,但无法获得输出
$r = Invoke-WebRequest -Uri "www.vinithmenon.com"
$r
$r.AllElements
$r.AllElements | gm
$r.AllElements.innerhtml[0]
$new = $r.AllElements
$new
$new.innerhtml
$new.innerhtml[0]
$new | gm
$new.outerhtml | select -First 1
$new.outerhtml | select -First 1 | gm
$new.innerhtml | select -First 1 | gm
$new | gm
$new | select tagname |select -First 1
$new | select innertext |select -First 1
$new.innertext |select -First 1
$new | gm
$new.innerhtml |select -First 1
$new.innerhtml |select -First 1 | gm
$new | gm
$new.outerhtml |select -First 1 | gm
$new | gm
$new.tagname |select -First 1 | gm