Ripping All Links from a Website – PowerShell.com

Ripping All Links from a Website.

Ripping All Links from a Website

 

PowerShell 3.0 comes with a great new cmdlet: Invoke-WebRequest! You can use it for a zillion things, but it can also simply retrieve the content of a website. It will even do basic parsing, so opening a window with all links on that website is a piece of cake:

 

PS> $website=Invoke-WebRequest-UseBasicParsing-Urihttp://www.powershellmagazine.com

PS> $website.Links|Out-GridView